Skip to content

Commit

Permalink
chore(deps): update dependency kkt to v7.
Browse files Browse the repository at this point in the history
Upgrade react-scripts to v5, Support Webpack 5.x
kktjs/kkt#198
  • Loading branch information
jaywcjlove committed Jan 5, 2022
1 parent c96cf77 commit 08c96de
Show file tree
Hide file tree
Showing 5 changed files with 40 additions and 17 deletions.
26 changes: 25 additions & 1 deletion examples/website/.kktrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,30 @@ export default (conf, env, options) => {
conf = lessModules(conf, env, options);
conf = rawModules(conf, env, options);
conf.module.exprContextCritical = false;
conf.output = { ...conf.output, publicPath: './' };
if (env === 'production') {
conf.output = { ...conf.output, publicPath: './' };
conf.optimization = {
...conf.optimization,
splitChunks: {
cacheGroups: {
reactvendor: {
test: /[\\/]node_modules[\\/](react|react-dom)[\\/]/,
name: 'react-vendor',
chunks: 'all',
},
refractor: {
test: /[\\/]node_modules[\\/](refractor)[\\/]/,
name: 'refractor-vendor',
chunks: 'all',
},
antd: {
test: /[\\/]node_modules[\\/](antd)[\\/]/,
name: 'antd-vendor',
chunks: 'all',
},
},
},
};
}
return conf;
};
8 changes: 4 additions & 4 deletions examples/website/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,10 @@
"web-vitals": "1.0.1"
},
"devDependencies": {
"@kkt/less-modules": "6.11.0",
"@kkt/raw-modules": "6.11.0",
"@kkt/scope-plugin-options": "6.11.0",
"kkt": "6.11.0"
"@kkt/less-modules": "7.0.4",
"@kkt/raw-modules": "7.0.4",
"@kkt/scope-plugin-options": "7.0.4",
"kkt": "7.0.4"
},
"eslintConfig": {
"extends": [
Expand Down
19 changes: 9 additions & 10 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,20 +48,20 @@
"author": "jaywcjlove",
"license": "MIT",
"dependencies": {
"@kkt/less-modules": "6.11.0",
"@kkt/react-library": "6.11.0",
"@types/jest": "27.0.3",
"@types/react": "17.0.37",
"@kkt/less-modules": "7.0.4",
"@kkt/react-library": "7.0.4",
"@types/jest": "27.4.0",
"@types/react": "17.0.38",
"@types/react-dom": "17.0.11",
"@types/react-test-renderer": "17.0.1",
"@umijs/preset-react": "1.8.30",
"babel-plugin-import": "1.13.3",
"compile-less-cli": "1.8.9",
"compile-less-cli": "1.8.11",
"husky": "7.0.4",
"jest-environment-jsdom": "27.4.4",
"kkt": "6.11.0",
"jest-environment-jsdom": "27.4.6",
"kkt": "7.0.4",
"lerna": "4.0.0",
"lint-staged": "12.1.4",
"lint-staged": "12.1.5",
"prettier": "2.5.1",
"react": "17.0.2",
"react-dom": "17.0.2",
Expand All @@ -70,6 +70,5 @@
"tsbb": "3.5.4",
"umi": "3.5.20",
"umi-plugin-antd-icon-config": "2.0.4"
},
"version": "1.8.17"
}
}
2 changes: 1 addition & 1 deletion packages/antdp-edit-table/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
"rc-field-form": "~1.22.0"
},
"devDependencies": {
"@types/react": "17.0.37",
"@types/react": "17.0.38",
"@types/react-dom": "17.0.11",
"antd": "4.17.4",
"babel-plugin-import": "1.13.3",
Expand Down
2 changes: 1 addition & 1 deletion packages/antdp-ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
},
"devDependencies": {
"@types/classnames": "2.3.1",
"@types/react": "17.0.37",
"@types/react": "17.0.38",
"@types/react-dom": "17.0.11",
"antd": "4.17.4",
"babel-plugin-import": "1.13.3",
Expand Down

0 comments on commit 08c96de

Please sign in to comment.