diff --git a/package-lock.json b/package-lock.json index 2afb7013b1..cf5f0b8f08 100644 --- a/package-lock.json +++ b/package-lock.json @@ -32995,7 +32995,7 @@ "rollup-plugin-sourcemaps": "^0.6.3", "source-map-loader": "^4.0.1", "storybook": "^8.0.0-beta.4", - "terser-webpack-plugin": "^5.3.1", + "terser-webpack-plugin": "^5.3.10", "ts-loader": "^9.2.5", "typescript": "~4.8.2", "webpack": "^5.75.0", diff --git a/packages/nimble-components/.storybook/main.js b/packages/nimble-components/.storybook/main.js index 1229b96834..f1df0cdde4 100644 --- a/packages/nimble-components/.storybook/main.js +++ b/packages/nimble-components/.storybook/main.js @@ -1,7 +1,6 @@ import { dirname, join } from 'path'; import remarkGfm from 'remark-gfm'; import CircularDependencyPlugin from 'circular-dependency-plugin'; -// eslint-disable-next-line import/no-extraneous-dependencies import TerserPlugin from 'terser-webpack-plugin'; // All files participating in storybook should be in src @@ -48,11 +47,11 @@ export function webpackFinal(config) { config.performance = { hints: false }; - // eslint-disable-next-line global-require, import/no-extraneous-dependencies config.optimization.minimizer = [ new TerserPlugin({ terserOptions: { - keep_classnames: true + keep_classnames: true, + keep_fnames: true } }) ]; diff --git a/packages/nimble-components/package.json b/packages/nimble-components/package.json index d6a99e1297..43614e789c 100644 --- a/packages/nimble-components/package.json +++ b/packages/nimble-components/package.json @@ -156,7 +156,7 @@ "rollup-plugin-sourcemaps": "^0.6.3", "source-map-loader": "^4.0.1", "storybook": "^8.0.0-beta.4", - "terser-webpack-plugin": "^5.3.1", + "terser-webpack-plugin": "^5.3.10", "ts-loader": "^9.2.5", "typescript": "~4.8.2", "webpack": "^5.75.0",