Skip to content

Commit a8b238b

Browse files
committed
chore: fix failed to parse source map issue.
kktjs/kkt#446
1 parent 0961f53 commit a8b238b

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

www/.kktrc.ts

+5
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,11 @@ export default (conf: WebpackConfiguration, env: 'production' | 'development', o
1919
VERSION: JSON.stringify(pkg.version),
2020
}),
2121
);
22+
conf.ignoreWarnings = [
23+
{
24+
module: /node_modules[\\/]parse5[\\/]/,
25+
},
26+
];
2227
conf.module!.exprContextCritical = false;
2328
if (env === 'production') {
2429
conf.output = { ...conf.output, publicPath: './' };

www/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"@types/react": "^18.2.17",
1212
"@types/react-dom": "^18.2.7",
1313
"@uiw/react-markdown-editor": "5.13.1",
14-
"@uiw/react-markdown-preview-example": "^1.5.6",
14+
"@uiw/react-markdown-preview-example": "^2.0.0",
1515
"react": "^18.2.0",
1616
"react-dom": "^18.2.0"
1717
},

0 commit comments

Comments
 (0)