Skip to content

Commit

Permalink
Switch to preset-env
Browse files Browse the repository at this point in the history
Disables webpack modules by enabling babel modules to resolve #1638
  • Loading branch information
Timer committed Mar 6, 2017
1 parent 1bfd5da commit 256d705
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 13 deletions.
11 changes: 7 additions & 4 deletions packages/babel-preset-react-app/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,10 +84,13 @@ if (env === 'test') {
module.exports = {
presets: [
// Latest stable ECMAScript features
[require.resolve('babel-preset-latest'), {
'es2015': {
modules: false
}
[require.resolve('babel-preset-env'), {
targets: {
// We support everything React supports
'ie': 9
},
// Disable polyfill transforms
useBuiltIns: false
}],
// JSX, Flow
require.resolve('babel-preset-react')
Expand Down
17 changes: 8 additions & 9 deletions packages/babel-preset-react-app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,16 @@
"dependencies": {
"babel-plugin-dynamic-import-node": "1.0.0",
"babel-plugin-syntax-dynamic-import": "6.18.0",
"babel-plugin-transform-class-properties": "6.22.0",
"babel-plugin-transform-object-rest-spread": "6.22.0",
"babel-plugin-transform-react-constant-elements": "6.22.0",
"babel-plugin-transform-react-jsx": "6.22.0",
"babel-plugin-transform-class-properties": "6.23.0",
"babel-plugin-transform-object-rest-spread": "6.23.0",
"babel-plugin-transform-react-constant-elements": "6.23.0",
"babel-plugin-transform-react-jsx": "6.23.0",
"babel-plugin-transform-react-jsx-self": "6.22.0",
"babel-plugin-transform-react-jsx-source": "6.22.0",
"babel-plugin-transform-regenerator": "6.22.0",
"babel-plugin-transform-runtime": "6.22.0",
"babel-preset-env": "1.1.8",
"babel-preset-latest": "6.22.0",
"babel-preset-react": "6.22.0",
"babel-runtime": "6.22.0"
"babel-plugin-transform-runtime": "6.23.0",
"babel-preset-env": "1.2.1",
"babel-preset-react": "6.23.0",
"babel-runtime": "6.23.0"
}
}

0 comments on commit 256d705

Please sign in to comment.