Skip to content

Commit

Permalink
fix: avoid injecting polyfills when targeting node
Browse files Browse the repository at this point in the history
  • Loading branch information
yyx990803 committed Jun 5, 2018
1 parent 1dc47eb commit 586c8aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/@vue/babel-preset-app/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ module.exports = (context, options = {}) => {
// be force-included.
let polyfills
const buildTarget = process.env.VUE_CLI_TARGET || 'app'
if (buildTarget === 'app' && useBuiltIns === 'usage') {
if (buildTarget === 'app' && useBuiltIns === 'usage' && !process.env.VUE_CLI_BABEL_TARGET_NODE) {
polyfills = getPolyfills(targets, userPolyfills || defaultPolyfills, {
ignoreBrowserslistConfig,
configPath
Expand Down

0 comments on commit 586c8aa

Please sign in to comment.