Skip to content

Commit

Permalink
website: fix failed to parse source map issue.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaywcjlove committed Nov 27, 2023
1 parent 7134996 commit 290d99d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
3 changes: 3 additions & 0 deletions .kktrc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ export default (conf: Configuration, env: 'production' | 'development', options:
}),
);

/** https://github.com/kktjs/kkt/issues/446 */
conf.ignoreWarnings = [ { module: /node_modules[\\/]parse5[\\/]/ } ];

if (env === 'production') {
conf.output = { ...conf.output, publicPath: './' };
conf.optimization = {
Expand Down
12 changes: 5 additions & 7 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
{
"compilerOptions": {
"target": "es5",
"lib": ["es6", "dom"],
"jsx": "react-jsx",
"target": "esnext",
"lib": ["dom", "dom.iterable", "esnext"],
"allowJs": true,
"skipLibCheck": true,
"esModuleInterop": true,
Expand All @@ -13,11 +14,8 @@
"resolveJsonModule": true,
"isolatedModules": true,
"declaration": true,
"experimentalDecorators": true,
"baseUrl": "src",
"jsx": "react-jsx",
"baseUrl": "./src",
"noFallthroughCasesInSwitch": true,
"noEmit": true
},
"include": ["src/**/*"]
}
}

1 comment on commit 290d99d

@vercel
Copy link

@vercel vercel bot commented on 290d99d Nov 27, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

npm-unpkg – ./

npm-unpkg-398188662.vercel.app
npm-unpkg-git-master-398188662.vercel.app

Please sign in to comment.