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 12c3a25 commit dbbf256
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions website/.kktrc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,11 @@ export default (conf: WebpackConfiguration, env: 'production' | 'development', o
VERSION: JSON.stringify(pkg.version),
}),
);
conf.ignoreWarnings = [
{
module: /node_modules[\\/]parse5[\\/]/,
},
];
conf = mdCodeModulesLoader(conf);
// https://github.com/kktjs/kkt/issues/336#issue-1097660932
conf.module!.exprContextCritical = false;
Expand Down
2 changes: 1 addition & 1 deletion website/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"private": true,
"scripts": {
"build": "kkt build",
"start": "GENERATE_SOURCEMAP=false kkt start",
"start": "kkt start",
"map": "source-map-explorer build/static/js/*.js --html build/website-result.html"
},
"dependencies": {
Expand Down

0 comments on commit dbbf256

Please sign in to comment.