Skip to content

Commit

Permalink
chore: fix failed to parse source map & update dependency.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaywcjlove committed Nov 26, 2023
1 parent 14fb085 commit 12448d8
Show file tree
Hide file tree
Showing 5 changed files with 34 additions and 30 deletions.
1 change: 1 addition & 0 deletions example/nextjs/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
/node_modules
/.pnp
.pnp.js
.yarn/install-state.gz

# testing
/coverage
Expand Down
28 changes: 14 additions & 14 deletions example/nextjs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,21 +9,21 @@
"lint": "next lint"
},
"dependencies": {
"@types/node": "~20.8.2",
"@types/react": "^18.2.24",
"@types/react-dom": "^18.2.9",
"autoprefixer": "~10.4.16",
"eslint": "~8.50.0",
"eslint-config-next": "~13.5.4",
"next": "~13.5.4",
"postcss": "~8.4.31",
"react": "~18.2.0",
"react-dom": "~18.2.0",
"tailwindcss": "~3.3.3",
"typescript": "~5.2.2"
"@uiw/react-codemirror": "4.21.20",
"react-codemirror-merge": "4.21.20",
"next": "14.0.3",
"react": "^18",
"react-dom": "^18"
},
"devDependencies": {
"@uiw/react-codemirror": "4.21.20",
"react-codemirror-merge": "4.21.20"
"typescript": "^5",
"@types/node": "^20",
"@types/react": "^18",
"@types/react-dom": "^18",
"autoprefixer": "^10.0.1",
"postcss": "^8",
"tailwindcss": "^3.3.0",
"eslint": "^8",
"eslint-config-next": "14.0.3"
}
}
10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,15 @@
"node": ">=16.0.0"
},
"devDependencies": {
"@kkt/less-modules": "^7.2.0",
"@kkt/less-modules": "^7.5.4",
"@kkt/ncc": "^1.0.13",
"@types/react-test-renderer": "~18.0.0",
"husky": "~8.0.0",
"kkt": "^7.2.0",
"lerna": "^7.0.0",
"lint-staged": "^14.0.1",
"kkt": "^7.5.4",
"lerna": "^8.0.0",
"lint-staged": "^15.1.0",
"prettier": "^3.0.2",
"react-test-renderer": "~18.2.0",
"tsbb": "^4.2.3"
"tsbb": "^4.2.4"
}
}
3 changes: 3 additions & 0 deletions www/.kktrc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ export default (conf: Configuration, env: 'production' | 'development', options:
}),
);
conf.module!.exprContextCritical = false;
/** https://github.com/kktjs/kkt/issues/446 */
conf.ignoreWarnings = [{ module: /node_modules[\\/]parse5[\\/]/ }];

if (env === 'production') {
conf.optimization = {
...conf.optimization,
Expand Down
22 changes: 11 additions & 11 deletions www/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,20 +7,20 @@
"author": "kenny wong <wowohoo@qq.com>",
"license": "MIT",
"scripts": {
"build": "cross-env GENERATE_SOURCEMAP=false kkt build",
"build": "kkt build",
"start": "kkt start",
"map": "source-map-explorer build/static/js/*.js --html build/website-result.html"
},
"devDependencies": {
"@kkt/less-modules": "^7.2.0",
"@kkt/raw-modules": "^7.2.0",
"@kkt/scope-plugin-options": "^7.2.0",
"@kkt/less-modules": "^7.5.4",
"@kkt/raw-modules": "^7.5.4",
"@kkt/scope-plugin-options": "^7.5.4",
"@types/katex": "^0.16.0",
"@types/react": "^18.2.0",
"@types/react-dom": "^18.2.0",
"cross-env": "^7.0.3",
"kkt": "^7.2.0",
"source-map-explorer": "~2.5.2"
"kkt": "^7.5.4",
"source-map-explorer": "~2.5.3"
},
"dependencies": {
"@codemirror/lang-cpp": "^6.0.0",
Expand Down Expand Up @@ -83,18 +83,18 @@
"@uiw/react-back-to-top": "^1.1.2",
"@uiw/react-codemirror": "4.21.20",
"@uiw/react-github-corners": "~1.5.14",
"@uiw/react-markdown-preview": "^4.1.13",
"@uiw/react-markdown-preview": "^5.0.2",
"@uiw/react-shields": "^2.0.1",
"@wcj/dark-mode": "~1.0.12",
"code-example": "^3.3.6",
"markdown-react-code-preview-loader": "^2.1.2",
"react": "~18.2.0",
"react-code-preview-layout": "^3.0.1",
"react-code-preview-layout": "^3.1.4",
"react-codemirror-merge": "4.21.20",
"react-dom": "~18.2.0",
"react-router-dom": "^6.14.2",
"rehype-ignore": "^1.0.1",
"styled-components": "6.0.7"
"react-router-dom": "^6.20.0",
"rehype-ignore": "^2.0.1",
"styled-components": "^6.1.1"
},
"eslintConfig": {
"extends": [
Expand Down

0 comments on commit 12448d8

Please sign in to comment.