Skip to content

Commit 52f9d3f

Browse files
committed
build: upgrade webpack & karma
1 parent b273bf7 commit 52f9d3f

File tree

4 files changed

+550
-1047
lines changed

4 files changed

+550
-1047
lines changed

Diff for: package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@
106106
"http-server": "^0.11.1",
107107
"jasmine": "^2.99.0",
108108
"jasmine-core": "^2.99.0",
109-
"karma": "^2.0.0",
109+
"karma": "^3.1.1",
110110
"karma-chrome-launcher": "^2.1.1",
111111
"karma-coverage": "^1.1.1",
112112
"karma-firefox-launcher": "^1.0.1",
@@ -116,7 +116,7 @@
116116
"karma-safari-launcher": "^1.0.0",
117117
"karma-sauce-launcher": "^1.1.0",
118118
"karma-sourcemap-loader": "^0.3.7",
119-
"karma-webpack": "^2.0.3",
119+
"karma-webpack": "^4.0.0-rc.2",
120120
"lint-staged": "^7.0.0",
121121
"lodash": "^4.17.4",
122122
"lodash.template": "^4.4.0",
@@ -139,7 +139,7 @@
139139
"shelljs": "^0.8.1",
140140
"typescript": "^2.7.1",
141141
"uglify-js": "^3.0.15",
142-
"webpack": "^3.11.0",
142+
"webpack": "^4.22.0",
143143
"weex-js-runtime": "^0.23.6",
144144
"weex-styler": "^0.3.0",
145145
"yorkie": "^1.0.1"

Diff for: scripts/config.js

+5
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,11 @@ function genConfig (name) {
188188
format: opts.format,
189189
banner: opts.banner,
190190
name: opts.moduleName || 'Vue'
191+
},
192+
onwarn: (msg, warn) => {
193+
if (!/Circular/.test(msg)) {
194+
warn(msg)
195+
}
191196
}
192197
}
193198

Diff for: test/unit/karma.base.config.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ var alias = require('../../scripts/alias')
22
var webpack = require('webpack')
33

44
var webpackConfig = {
5+
mode: 'development',
56
resolve: {
67
alias: alias
78
},
@@ -18,7 +19,6 @@ var webpackConfig = {
1819
new webpack.DefinePlugin({
1920
__WEEX__: false,
2021
'process.env': {
21-
NODE_ENV: '"development"',
2222
TRANSITION_DURATION: process.env.CI ? 100 : 50,
2323
TRANSITION_BUFFER: 10
2424
}

0 commit comments

Comments
 (0)