babel-preset-react-app 5.0.3 → 5.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/create.js +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
@@ -3,8 +3,8 @@
|
|
3
3
|
This package includes the Babel preset used by [Create React App](https://github.com/facebook/create-react-app).<br>
|
4
4
|
Please refer to its documentation:
|
5
5
|
|
6
|
-
|
7
|
-
|
6
|
+
- [Getting Started](https://github.com/facebook/create-react-app/blob/master/README.md#getting-started) – How to create a new app.
|
7
|
+
- [User Guide](https://github.com/facebook/create-react-app/blob/master/packages/react-scripts/template/README.md) – How to develop apps bootstrapped with Create React App.
|
8
8
|
|
9
9
|
## Usage in Create React App Projects
|
10
10
|
|
package/create.js
CHANGED
@@ -158,7 +158,7 @@ module.exports = function(api, opts, env) {
|
|
158
158
|
require('@babel/plugin-syntax-dynamic-import').default,
|
159
159
|
isEnvTest &&
|
160
160
|
// Transform dynamic import to require
|
161
|
-
require('babel-plugin-
|
161
|
+
require('babel-plugin-dynamic-import-node'),
|
162
162
|
].filter(Boolean),
|
163
163
|
};
|
164
164
|
};
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "babel-preset-react-app",
|
3
|
-
"version": "5.0.
|
3
|
+
"version": "5.0.4",
|
4
4
|
"description": "Babel preset used by Create React App",
|
5
5
|
"repository": "facebook/create-react-app",
|
6
6
|
"license": "MIT",
|
@@ -31,8 +31,8 @@
|
|
31
31
|
"@babel/preset-react": "7.0.0",
|
32
32
|
"@babel/runtime": "7.0.0",
|
33
33
|
"babel-loader": "8.0.4",
|
34
|
+
"babel-plugin-dynamic-import-node": "2.2.0",
|
34
35
|
"babel-plugin-macros": "2.4.2",
|
35
|
-
"babel-plugin-transform-dynamic-import": "2.1.0",
|
36
36
|
"babel-plugin-transform-react-remove-prop-types": "0.4.18"
|
37
37
|
}
|
38
38
|
}
|