Skip to content

Commit

Permalink
fix: Fix critical dependency.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaywcjlove committed Jan 10, 2022
1 parent c4516c0 commit c58dca0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions .kktrc.ts
Expand Up @@ -20,6 +20,7 @@ export default (conf: Configuration, env: 'production' | 'development', options:
VERSION: JSON.stringify(pkg.version),
}));
if (env === 'production') {
conf.module!.exprContextCritical = false;
conf.output = { ...conf.output, publicPath: './' };
conf.optimization = {
...conf.optimization,
Expand Down

1 comment on commit c58dca0

@jaywcjlove
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.