Skip to content

Commit

Permalink
Transform modules in test
Browse files Browse the repository at this point in the history
  • Loading branch information
Timer committed Dec 3, 2017
1 parent 482abf2 commit 539e46a
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
1 change: 1 addition & 0 deletions packages/babel-preset-react-app/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ module.exports = function(api, opts) {
isEnvTest &&
// Transform dynamic import to require
require('babel-plugin-transform-dynamic-import').default,
isEnvTest && require('@babel/plugin-transform-modules-commonjs'),
].filter(Boolean),
};
};
1 change: 1 addition & 0 deletions packages/babel-preset-react-app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
"@babel/plugin-proposal-class-properties": "7.0.0-beta.34",
"@babel/plugin-syntax-dynamic-import": "^7.0.0-beta.34",
"@babel/plugin-transform-classes": "7.0.0-beta.34",
"@babel/plugin-transform-modules-commonjs": "^7.0.0-beta.34",
"@babel/plugin-transform-react-constant-elements": "7.0.0-beta.34",
"@babel/plugin-transform-react-display-name": "7.0.0-beta.34",
"@babel/plugin-transform-react-jsx": "7.0.0-beta.34",
Expand Down
4 changes: 0 additions & 4 deletions packages/react-scripts/fixtures/kitchensink/.babelrc

This file was deleted.

0 comments on commit 539e46a

Please sign in to comment.