Skip to content

Commit 46fba36

Browse files
committed
chore(deps): update dependency kkt to v7.0.5.
1 parent 5cd75f9 commit 46fba36

File tree

3 files changed

+33
-7
lines changed

3 files changed

+33
-7
lines changed

.kktrc.ts

Lines changed: 28 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,34 @@ export default (conf: Configuration, env: 'development' | 'production', options:
2121
}));
2222

2323
if (env === 'production') {
24-
conf.output = { ...conf.output, publicPath: './' }
24+
conf.output = { ...conf.output, publicPath: './' };
25+
conf.optimization = {
26+
...conf.optimization,
27+
splitChunks: {
28+
cacheGroups: {
29+
reactvendor: {
30+
test: /[\\/]node_modules[\\/](react|react-dom)[\\/]/,
31+
name: 'react-vendor',
32+
chunks: 'all',
33+
},
34+
refractor: {
35+
test: /[\\/]node_modules[\\/](refractor)[\\/]/,
36+
name: 'refractor-prismjs-vendor',
37+
chunks: 'all',
38+
},
39+
runtime: {
40+
test: /[\\/]node_modules[\\/](@babel)[\\/]/,
41+
name: 'babel-vendor',
42+
chunks: 'all',
43+
},
44+
parse5: {
45+
test: /[\\/]node_modules[\\/](parse5)[\\/]/,
46+
name: 'parse5-vendor',
47+
chunks: 'all',
48+
},
49+
}
50+
}
51+
}
2552
}
2653
return conf;
2754
}

package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,16 +37,16 @@
3737
"codesandbox-import-utils": "2.2.3"
3838
},
3939
"devDependencies": {
40-
"@kkt/less-modules": "7.0.4",
41-
"@kkt/raw-modules": "7.0.4",
42-
"@kkt/scope-plugin-options": "7.0.4",
40+
"@kkt/less-modules": "7.0.5",
41+
"@kkt/raw-modules": "7.0.5",
42+
"@kkt/scope-plugin-options": "7.0.5",
4343
"@types/react": "17.0.38",
4444
"@types/react-dom": "17.0.11",
4545
"@uiw/react-github-corners": "1.5.3",
46-
"@uiw/react-markdown-preview": "3.4.5",
46+
"@uiw/react-markdown-preview": "3.4.7",
4747
"react": "17.0.2",
4848
"react-dom": "17.0.2",
49-
"kkt": "7.0.4",
49+
"kkt": "7.0.5",
5050
"tsbb": "3.5.4"
5151
},
5252
"eslintConfig": {

src/react-app-env.d.ts

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)