Skip to content

Commit 3d78451

Browse files
committed
Fix integration tests
1 parent 1574cde commit 3d78451

File tree

1 file changed

+15
-15
lines changed

1 file changed

+15
-15
lines changed

packages/app/config/babel.dev.js

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -7,23 +7,23 @@ module.exports = {
77
presets: [
88
// Latest stable ECMAScript features
99
require.resolve('@babel/preset-flow'),
10-
// [
11-
// require.resolve('@babel/preset-env'),
12-
// {
13-
// targets: {
14-
// chrome: 67,
15-
// // We currently minify with uglify
16-
// // Remove after https://github.com/mishoo/UglifyJS2/issues/448
17-
// },
18-
// // Disable polyfill transforms
19-
// useBuiltIns: false,
20-
// modules: false,
21-
// forceAllTransforms: true,
22-
// },
23-
// ],
10+
process.env.NODE_ENV === 'test' && [
11+
require.resolve('@babel/preset-env'),
12+
{
13+
targets: {
14+
chrome: 67,
15+
// We currently minify with uglify
16+
// Remove after https://github.com/mishoo/UglifyJS2/issues/448
17+
},
18+
// Disable polyfill transforms
19+
useBuiltIns: false,
20+
modules: false,
21+
forceAllTransforms: true,
22+
},
23+
],
2424
// JSX, Flow
2525
require.resolve('@babel/preset-react'),
26-
],
26+
].filter(Boolean),
2727
plugins: [
2828
require.resolve('@babel/plugin-transform-template-literals'),
2929
require.resolve('@babel/plugin-transform-destructuring'),

0 commit comments

Comments
 (0)