Skip to content

Commit 290d99d

Browse files
committed
website: fix failed to parse source map issue.
1 parent 7134996 commit 290d99d

File tree

2 files changed

+8
-7
lines changed

2 files changed

+8
-7
lines changed

.kktrc.ts

+3
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ export default (conf: Configuration, env: 'production' | 'development', options:
1313
}),
1414
);
1515

16+
/** https://github.com/kktjs/kkt/issues/446 */
17+
conf.ignoreWarnings = [ { module: /node_modules[\\/]parse5[\\/]/ } ];
18+
1619
if (env === 'production') {
1720
conf.output = { ...conf.output, publicPath: './' };
1821
conf.optimization = {

tsconfig.json

+5-7
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
{
22
"compilerOptions": {
3-
"target": "es5",
4-
"lib": ["es6", "dom"],
3+
"jsx": "react-jsx",
4+
"target": "esnext",
5+
"lib": ["dom", "dom.iterable", "esnext"],
56
"allowJs": true,
67
"skipLibCheck": true,
78
"esModuleInterop": true,
@@ -13,11 +14,8 @@
1314
"resolveJsonModule": true,
1415
"isolatedModules": true,
1516
"declaration": true,
16-
"experimentalDecorators": true,
17-
"baseUrl": "src",
18-
"jsx": "react-jsx",
17+
"baseUrl": "./src",
1918
"noFallthroughCasesInSwitch": true,
2019
"noEmit": true
21-
},
22-
"include": ["src/**/*"]
20+
}
2321
}

0 commit comments

Comments
 (0)