Skip to content

Commit dbbf256

Browse files
committed
chore: fix failed to parse source map issue.
kktjs/kkt#446
1 parent 12c3a25 commit dbbf256

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

website/.kktrc.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,11 @@ export default (conf: WebpackConfiguration, env: 'production' | 'development', o
1818
VERSION: JSON.stringify(pkg.version),
1919
}),
2020
);
21+
conf.ignoreWarnings = [
22+
{
23+
module: /node_modules[\\/]parse5[\\/]/,
24+
},
25+
];
2126
conf = mdCodeModulesLoader(conf);
2227
// https://github.com/kktjs/kkt/issues/336#issue-1097660932
2328
conf.module!.exprContextCritical = false;

website/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"private": true,
55
"scripts": {
66
"build": "kkt build",
7-
"start": "GENERATE_SOURCEMAP=false kkt start",
7+
"start": "kkt start",
88
"map": "source-map-explorer build/static/js/*.js --html build/website-result.html"
99
},
1010
"dependencies": {

0 commit comments

Comments
 (0)