Skip to content

Commit

Permalink
fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
fredvisser committed Feb 22, 2024
1 parent bd34937 commit fa5f835
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 2 additions & 3 deletions packages/nimble-components/.storybook/main.js
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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
}
})
];
Expand Down
2 changes: 1 addition & 1 deletion packages/nimble-components/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit fa5f835

Please sign in to comment.