Skip to content

Commit 12448d8

Browse files
committedNov 26, 2023
chore: fix failed to parse source map & update dependency.
1 parent 14fb085 commit 12448d8

File tree

5 files changed

+34
-30
lines changed

5 files changed

+34
-30
lines changed
 

‎example/nextjs/.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
/node_modules
55
/.pnp
66
.pnp.js
7+
.yarn/install-state.gz
78

89
# testing
910
/coverage

‎example/nextjs/package.json

+14-14
Original file line numberDiff line numberDiff line change
@@ -9,21 +9,21 @@
99
"lint": "next lint"
1010
},
1111
"dependencies": {
12-
"@types/node": "~20.8.2",
13-
"@types/react": "^18.2.24",
14-
"@types/react-dom": "^18.2.9",
15-
"autoprefixer": "~10.4.16",
16-
"eslint": "~8.50.0",
17-
"eslint-config-next": "~13.5.4",
18-
"next": "~13.5.4",
19-
"postcss": "~8.4.31",
20-
"react": "~18.2.0",
21-
"react-dom": "~18.2.0",
22-
"tailwindcss": "~3.3.3",
23-
"typescript": "~5.2.2"
12+
"@uiw/react-codemirror": "4.21.20",
13+
"react-codemirror-merge": "4.21.20",
14+
"next": "14.0.3",
15+
"react": "^18",
16+
"react-dom": "^18"
2417
},
2518
"devDependencies": {
26-
"@uiw/react-codemirror": "4.21.20",
27-
"react-codemirror-merge": "4.21.20"
19+
"typescript": "^5",
20+
"@types/node": "^20",
21+
"@types/react": "^18",
22+
"@types/react-dom": "^18",
23+
"autoprefixer": "^10.0.1",
24+
"postcss": "^8",
25+
"tailwindcss": "^3.3.0",
26+
"eslint": "^8",
27+
"eslint-config-next": "14.0.3"
2828
}
2929
}

‎package.json

+5-5
Original file line numberDiff line numberDiff line change
@@ -28,15 +28,15 @@
2828
"node": ">=16.0.0"
2929
},
3030
"devDependencies": {
31-
"@kkt/less-modules": "^7.2.0",
31+
"@kkt/less-modules": "^7.5.4",
3232
"@kkt/ncc": "^1.0.13",
3333
"@types/react-test-renderer": "~18.0.0",
3434
"husky": "~8.0.0",
35-
"kkt": "^7.2.0",
36-
"lerna": "^7.0.0",
37-
"lint-staged": "^14.0.1",
35+
"kkt": "^7.5.4",
36+
"lerna": "^8.0.0",
37+
"lint-staged": "^15.1.0",
3838
"prettier": "^3.0.2",
3939
"react-test-renderer": "~18.2.0",
40-
"tsbb": "^4.2.3"
40+
"tsbb": "^4.2.4"
4141
}
4242
}

‎www/.kktrc.ts

+3
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@ export default (conf: Configuration, env: 'production' | 'development', options:
1818
}),
1919
);
2020
conf.module!.exprContextCritical = false;
21+
/** https://github.com/kktjs/kkt/issues/446 */
22+
conf.ignoreWarnings = [{ module: /node_modules[\\/]parse5[\\/]/ }];
23+
2124
if (env === 'production') {
2225
conf.optimization = {
2326
...conf.optimization,

‎www/package.json

+11-11
Original file line numberDiff line numberDiff line change
@@ -7,20 +7,20 @@
77
"author": "kenny wong <wowohoo@qq.com>",
88
"license": "MIT",
99
"scripts": {
10-
"build": "cross-env GENERATE_SOURCEMAP=false kkt build",
10+
"build": "kkt build",
1111
"start": "kkt start",
1212
"map": "source-map-explorer build/static/js/*.js --html build/website-result.html"
1313
},
1414
"devDependencies": {
15-
"@kkt/less-modules": "^7.2.0",
16-
"@kkt/raw-modules": "^7.2.0",
17-
"@kkt/scope-plugin-options": "^7.2.0",
15+
"@kkt/less-modules": "^7.5.4",
16+
"@kkt/raw-modules": "^7.5.4",
17+
"@kkt/scope-plugin-options": "^7.5.4",
1818
"@types/katex": "^0.16.0",
1919
"@types/react": "^18.2.0",
2020
"@types/react-dom": "^18.2.0",
2121
"cross-env": "^7.0.3",
22-
"kkt": "^7.2.0",
23-
"source-map-explorer": "~2.5.2"
22+
"kkt": "^7.5.4",
23+
"source-map-explorer": "~2.5.3"
2424
},
2525
"dependencies": {
2626
"@codemirror/lang-cpp": "^6.0.0",
@@ -83,18 +83,18 @@
8383
"@uiw/react-back-to-top": "^1.1.2",
8484
"@uiw/react-codemirror": "4.21.20",
8585
"@uiw/react-github-corners": "~1.5.14",
86-
"@uiw/react-markdown-preview": "^4.1.13",
86+
"@uiw/react-markdown-preview": "^5.0.2",
8787
"@uiw/react-shields": "^2.0.1",
8888
"@wcj/dark-mode": "~1.0.12",
8989
"code-example": "^3.3.6",
9090
"markdown-react-code-preview-loader": "^2.1.2",
9191
"react": "~18.2.0",
92-
"react-code-preview-layout": "^3.0.1",
92+
"react-code-preview-layout": "^3.1.4",
9393
"react-codemirror-merge": "4.21.20",
9494
"react-dom": "~18.2.0",
95-
"react-router-dom": "^6.14.2",
96-
"rehype-ignore": "^1.0.1",
97-
"styled-components": "6.0.7"
95+
"react-router-dom": "^6.20.0",
96+
"rehype-ignore": "^2.0.1",
97+
"styled-components": "^6.1.1"
9898
},
9999
"eslintConfig": {
100100
"extends": [

0 commit comments

Comments
 (0)
Please sign in to comment.