Skip to content

Commit

Permalink
chore: fix failed to parse source map issue.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaywcjlove committed Nov 23, 2023
1 parent 5d54aeb commit 9ea3c30
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions website/.kktrc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@ export default (conf: WebpackConfiguration, env: 'development' | 'production', o
);

conf.module!.exprContextCritical = false;
/**
* fix failed to parse source map issue
* https://github.com/kktjs/kkt/issues/446
*/
conf.ignoreWarnings = [{ module: /node_modules[\\/]parse5[\\/]/ }];
if (env === 'production') {
conf.output = { ...conf.output, publicPath: './' };
conf.optimization = {
Expand Down

0 comments on commit 9ea3c30

Please sign in to comment.