Skip to content

Commit

Permalink
fix: fix dev mode compatibility with workers (#4034)
Browse files Browse the repository at this point in the history
fixes #3539
  • Loading branch information
sodatea committed May 21, 2019
1 parent d872cc0 commit d81d57b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/@vue/cli-service/lib/config/dev.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,10 @@ module.exports = (api, options) => {
.use(require('webpack/lib/HotModuleReplacementPlugin'))

// https://github.com/webpack/webpack/issues/6642
// https://github.com/vuejs/vue-cli/issues/3539
webpackConfig
.output
.globalObject('this')
.globalObject(`(typeof self !== 'undefined' ? self : this)`)

if (!process.env.VUE_CLI_TEST && options.devServer.progress !== false) {
webpackConfig
Expand Down

0 comments on commit d81d57b

Please sign in to comment.