Skip to content

Commit f782fa3

Browse files
committed
test: use explicit targets in babel tests
Fixes the issue caused by babel/babel#12989
1 parent 2f5ced3 commit f782fa3

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

packages/@vue/babel-preset-app/__tests__/babel-preset.spec.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ const babel = require('@babel/core')
33
const preset = require('../index')
44
const defaultOptions = {
55
babelrc: false,
6-
presets: [preset],
6+
presets: [[preset, { targets: { ie: 9 } }]],
77
filename: 'test-entry-file.js'
88
}
99

@@ -161,6 +161,7 @@ test('disable absoluteRuntime', () => {
161161
`.trim(), {
162162
babelrc: false,
163163
presets: [[preset, {
164+
targets: { ie: 9 },
164165
absoluteRuntime: false
165166
}]],
166167
filename: 'test-entry-file.js'
@@ -183,6 +184,7 @@ test('should inject polyfills / helpers using "require" statements for a umd mod
183184
`.trim(), {
184185
babelrc: false,
185186
presets: [[preset, {
187+
targets: { ie: 9 },
186188
absoluteRuntime: false
187189
}]],
188190
filename: 'test-entry-file.js'
@@ -200,6 +202,7 @@ test('should inject polyfills / helpers using "import" statements for an es modu
200202
`.trim(), {
201203
babelrc: false,
202204
presets: [[preset, {
205+
targets: { ie: 9 },
203206
absoluteRuntime: false
204207
}]],
205208
filename: 'test-entry-file.js'

0 commit comments

Comments
 (0)