Skip to content

Commit 3ddc19f

Browse files
authored
fix(mocha): set mode to none to avoid DefinePlugin conflict (#6478)
1 parent c64798d commit 3ddc19f

File tree

1 file changed

+2
-0
lines changed
  • packages/@vue/cli-plugin-unit-mocha

1 file changed

+2
-0
lines changed

Diff for: packages/@vue/cli-plugin-unit-mocha/index.js

+2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
module.exports = api => {
22
api.chainWebpack(webpackConfig => {
33
if (process.env.NODE_ENV === 'test') {
4+
webpackConfig.mode('none')
5+
46
webpackConfig.merge({
57
target: 'node',
68
devtool: 'inline-cheap-module-source-map'

0 commit comments

Comments
 (0)