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

(cherry picked from commit d81d57b)
  • Loading branch information
sodatea committed May 25, 2019
1 parent dbac817 commit 6f085d3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/@vue/cli-service/lib/config/dev.js
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 6f085d3

Please sign in to comment.