Skip to content

Commit 5678dcc

Browse files
committed
feat: update deps
1 parent be8bcbd commit 5678dcc

File tree

3 files changed

+16
-17
lines changed

3 files changed

+16
-17
lines changed

package.json

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "pri",
3-
"version": "4.0.11",
3+
"version": "4.0.12",
44
"types": "src/node/index.ts",
55
"main": "built/node/index.js",
66
"scripts": {
@@ -103,7 +103,7 @@
103103
"gulp-watch": "^5.0.1",
104104
"highlight.js": "9.16.2",
105105
"html-webpack-plugin": "3.2.0",
106-
"husky": "3.1.0",
106+
"husky": "4.2.1",
107107
"inquirer": "7.0.0",
108108
"isomorphic-fetch": "2.2.1",
109109
"jest": "24.9.0",
@@ -114,7 +114,7 @@
114114
"koa-route": "3.2.0",
115115
"koa-static": "5.0.0",
116116
"lodash": "^4.17.15",
117-
"mini-css-extract-plugin": "0.8.0",
117+
"mini-css-extract-plugin": "0.9.0",
118118
"node-forge": "0.9.1",
119119
"normalize-path": "3.0.0",
120120
"open": "7.0.0",
@@ -127,23 +127,23 @@
127127
"raw-loader": "4.0.0",
128128
"react": "16.12.0",
129129
"react-dom": "16.12.0",
130-
"react-hot-loader": "4.12.18",
130+
"react-hot-loader": "4.12.19",
131131
"react-router-dom": "5.1.2",
132132
"rimraf": "3.0.0",
133133
"sass-loader": "8.0.0",
134134
"semver": "6.3.0",
135135
"signale": "1.4.0",
136136
"socket.io": "2.3.0",
137137
"socket.io-client": "2.3.0",
138-
"style-loader": "1.0.1",
138+
"style-loader": "1.1.3",
139139
"typescript": "3.7.5",
140140
"update-notifier": "3.0.1",
141141
"url-join": "4.0.1",
142142
"url-loader": "3.0.0",
143143
"walk": "2.3.14",
144144
"webpack": "4.41.5",
145145
"webpack-bundle-analyzer": "3.6.0",
146-
"webpack-dev-server": "3.10.1",
146+
"webpack-dev-server": "3.10.3",
147147
"webpack-node-externals": "1.7.2",
148148
"webpack-sources": "1.4.3",
149149
"webpackbar": "4.0.0",

src/built-in-plugins/command-dev/plugin/webpack-dll-config.ts

+1-9
Original file line numberDiff line numberDiff line change
@@ -28,15 +28,7 @@ export default (opts: IOptions) => {
2828
(all, fn) => {
2929
return fn(all);
3030
},
31-
[
32-
'react',
33-
'react-dom',
34-
'lodash',
35-
'highlight.js',
36-
'react-router',
37-
'history',
38-
`${PRI_PACKAGE_NAME}/client`,
39-
],
31+
['react', 'react-dom', 'lodash', 'highlight.js', 'react-router', 'history', `${PRI_PACKAGE_NAME}/client`],
4032
),
4133
},
4234

src/utils/webpack-config.ts

+9-2
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ export const getWebpackConfig = async (opts: IOptions) => {
155155
let { devtool } = opts;
156156

157157
if (devtool === undefined) {
158-
devtool = opts.mode === 'development' ? 'eval-source-map' : false;
158+
devtool = opts.mode === 'development' ? 'cheap-module-eval-source-map' : false;
159159
}
160160

161161
const config: webpack.Configuration = {
@@ -315,7 +315,14 @@ export const getWebpackConfig = async (opts: IOptions) => {
315315
modules: selfAndProjectNodeModules,
316316
},
317317
plugins: [],
318-
optimization: { namedChunks: false },
318+
optimization: {
319+
namedChunks: false,
320+
splitChunks: {
321+
cacheGroups: {
322+
default: false,
323+
},
324+
},
325+
},
319326
stats,
320327
};
321328

0 commit comments

Comments
 (0)