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 0961f53 commit a8b238b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions www/.kktrc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,11 @@ export default (conf: WebpackConfiguration, env: 'production' | 'development', o
VERSION: JSON.stringify(pkg.version),
}),
);
conf.ignoreWarnings = [
{
module: /node_modules[\\/]parse5[\\/]/,
},
];
conf.module!.exprContextCritical = false;
if (env === 'production') {
conf.output = { ...conf.output, publicPath: './' };
Expand Down
2 changes: 1 addition & 1 deletion www/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"@types/react": "^18.2.17",
"@types/react-dom": "^18.2.7",
"@uiw/react-markdown-editor": "5.13.1",
"@uiw/react-markdown-preview-example": "^1.5.6",
"@uiw/react-markdown-preview-example": "^2.0.0",
"react": "^18.2.0",
"react-dom": "^18.2.0"
},
Expand Down

0 comments on commit a8b238b

Please sign in to comment.