We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 52dbdf8 commit f683583Copy full SHA for f683583
packages/@vue/cli-plugin-unit-mocha/index.js
@@ -15,6 +15,12 @@ module.exports = api => {
15
options.optimizeSSR = false
16
return options
17
})
18
+
19
+ const isLegacyBundle = process.env.VUE_CLI_MODERN_MODE && !process.env.VUE_CLI_MODERN_BUILD
20
+ // mocha-webpack cannot deal with the query parameter in filename
21
+ webpackConfig
22
+ .output
23
+ .filename(isLegacyBundle ? '[name]-legacy.js?' : '[name].js')
24
}
25
26
0 commit comments