Skip to content

Commit 78c6877

Browse files
haoqunjiangyyx990803
authored andcommitted
fix: fix hmr compatibility with worker-loader (vuejs#2286)
closes vuejs#2276
1 parent d9c6ebe commit 78c6877

File tree

1 file changed

+5
-0
lines changed
  • packages/@vue/cli-service/lib/config

1 file changed

+5
-0
lines changed

packages/@vue/cli-service/lib/config/dev.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,11 @@ module.exports = (api, options) => {
1010
.plugin('hmr')
1111
.use(require('webpack/lib/HotModuleReplacementPlugin'))
1212

13+
// https://github.com/webpack/webpack/issues/6642
14+
webpackConfig
15+
.output
16+
.globalObject('this')
17+
1318
webpackConfig
1419
.plugin('no-emit-on-errors')
1520
.use(require('webpack/lib/NoEmitOnErrorsPlugin'))

0 commit comments

Comments
 (0)