Skip to content

Commit a4f4df1

Browse files
committed
Remove VuetifyLoaderPlugin during unit tests
1 parent 097005e commit a4f4df1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Diff for: vue.config.js

+2
Original file line numberDiff line numberDiff line change
@@ -57,10 +57,12 @@ module.exports = defineConfig({
5757
// Tweak configuration options for Karma test runner to produce a bundle
5858
// which can run under Chrome headless. Avoid warnings due to custom entries
5959
// and customized filenames. Enable correct code coverage of .vue files.
60+
// Disable Vuetify treeshaking.
6061
if (process.env.NODE_ENV === 'test') {
6162
config.devtool = 'eval'
6263
config.optimization.runtimeChunk = false
6364
config.optimization.splitChunks = false
65+
config.plugins = config.plugins.filter(plugin => plugin.constructor.name !== 'VuetifyLoaderPlugin')
6466
delete config.target
6567
delete config.entry
6668
delete config.output.filename

0 commit comments

Comments
 (0)