Skip to content

Commit

Permalink
fix: fix core-js import for global service
Browse files Browse the repository at this point in the history
  • Loading branch information
yyx990803 committed Feb 15, 2018
1 parent 90310be commit 3a5d125
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/@vue/cli-service-global/lib/globalConfigPlugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,11 @@ module.exports = function createConfigPlugin (context, entry, asLib) {
}
}

// ensure core-js polyfills can be imported
config.resolve
.alias
.set('core-js', path.dirname(require.resolve('core-js')))

// ensure loaders can be resolved properly
// this is done by locating vue's install location (which is a
// dependency of the global service)
Expand Down

0 comments on commit 3a5d125

Please sign in to comment.