Skip to content

Commit 586c8aa

Browse files
committed
fix: avoid injecting polyfills when targeting node
1 parent 1dc47eb commit 586c8aa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/@vue/babel-preset-app/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ module.exports = (context, options = {}) => {
5858
// be force-included.
5959
let polyfills
6060
const buildTarget = process.env.VUE_CLI_TARGET || 'app'
61-
if (buildTarget === 'app' && useBuiltIns === 'usage') {
61+
if (buildTarget === 'app' && useBuiltIns === 'usage' && !process.env.VUE_CLI_BABEL_TARGET_NODE) {
6262
polyfills = getPolyfills(targets, userPolyfills || defaultPolyfills, {
6363
ignoreBrowserslistConfig,
6464
configPath

0 commit comments

Comments
 (0)