Skip to content

Commit

Permalink
Re-disable babel modules transform (#1894)
Browse files Browse the repository at this point in the history
* Upgrade webpack & related deps

* Disable module transform (requires webpack 2+)
  • Loading branch information
Timer authored Mar 27, 2017
1 parent b403048 commit 7b124e7
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
2 changes: 2 additions & 0 deletions packages/babel-preset-react-app/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,8 @@ if (env === 'test') {
},
// Disable polyfill transforms
useBuiltIns: false,
// Do not transform modules to CJS
modules: false,
},
],
// JSX, Flow
Expand Down
14 changes: 7 additions & 7 deletions packages/react-scripts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"react-scripts": "./bin/react-scripts.js"
},
"dependencies": {
"autoprefixer": "6.7.5",
"autoprefixer": "6.7.7",
"babel-core": "6.23.1",
"babel-eslint": "7.1.1",
"babel-jest": "18.0.0",
Expand All @@ -32,12 +32,12 @@
"chalk": "1.1.3",
"connect-history-api-fallback": "1.3.0",
"cross-spawn": "4.0.2",
"css-loader": "0.26.2",
"css-loader": "0.27.3",
"detect-port": "1.1.1",
"dotenv": "2.0.0",
"eslint": "3.16.1",
"eslint-config-react-app": "^0.6.1",
"eslint-loader": "1.6.3",
"eslint-loader": "1.7.0",
"eslint-plugin-flowtype": "2.21.0",
"eslint-plugin-import": "2.0.1",
"eslint-plugin-jsx-a11y": "4.0.0",
Expand All @@ -52,12 +52,12 @@
"postcss-loader": "1.3.3",
"promise": "7.1.1",
"react-dev-utils": "^0.5.2",
"style-loader": "0.13.2",
"style-loader": "0.16.0",
"url-loader": "0.5.8",
"webpack": "2.2.1",
"webpack-dev-server": "2.4.1",
"webpack": "2.3.2",
"webpack-dev-server": "2.4.2",
"webpack-manifest-plugin": "1.1.0",
"whatwg-fetch": "2.0.2"
"whatwg-fetch": "2.0.3"
},
"devDependencies": {
"react": "^15.3.0",
Expand Down

0 comments on commit 7b124e7

Please sign in to comment.