Skip to content

Commit

Permalink
use the correct dependency for babel-plugin-dynamic-import-node (#4984)
Browse files Browse the repository at this point in the history
* use the correct dependency for babel-plugin-dynamic-import-node

* Update package.json
  • Loading branch information
vikr01 authored and gaearon committed Oct 14, 2018
1 parent 5060768 commit 52fcb23
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/babel-preset-react-app/create.js
Expand Up @@ -158,7 +158,7 @@ module.exports = function(api, opts, env) {
require('@babel/plugin-syntax-dynamic-import').default,
isEnvTest &&
// Transform dynamic import to require
require('babel-plugin-transform-dynamic-import').default,
require('babel-plugin-dynamic-import-node'),
].filter(Boolean),
};
};
2 changes: 1 addition & 1 deletion packages/babel-preset-react-app/package.json
Expand Up @@ -31,8 +31,8 @@
"@babel/preset-react": "7.0.0",
"@babel/runtime": "7.0.0",
"babel-loader": "8.0.4",
"babel-plugin-dynamic-import-node": "2.2.0",
"babel-plugin-macros": "2.4.2",
"babel-plugin-transform-dynamic-import": "2.1.0",
"babel-plugin-transform-react-remove-prop-types": "0.4.18"
}
}

0 comments on commit 52fcb23

Please sign in to comment.