Skip to content

Commit 751c33d

Browse files
committed
more build process improvements
1 parent f73ed6d commit 751c33d

File tree

2 files changed

+17
-4
lines changed

2 files changed

+17
-4
lines changed

.babelrc

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,24 @@
11
{
22
"presets": ["@babel/preset-env", "@babel/preset-react"],
3-
"plugins": ["@babel/plugin-proposal-class-properties", "babel-plugin-transform-react-remove-prop-types"],
3+
"plugins": [
4+
[
5+
"babel-plugin-transform-react-remove-prop-types",
6+
{
7+
"mode": "unsafe-wrap",
8+
"ignoreFilenames": ["node_modules"]
9+
}
10+
],
11+
["@babel/plugin-proposal-object-rest-spread", { "loose": true }],
12+
["@babel/plugin-proposal-class-properties", { "loose": true }],
13+
"@babel/transform-runtime"
14+
],
415
"env": {
516
"cjs": {
6-
"presets": [["@babel/env", { "modules": "commonjs" }], "@babel/preset-react"]
17+
"presets": [["@babel/env", { "modules": "commonjs" }]]
718
},
819
"esm": {
9-
"presets": [["@babel/env", { "modules": false }], "@babel/preset-react"]
20+
"presets": [["@babel/env", { "modules": false }]],
21+
"plugins": [["@babel/transform-runtime", { "useESModules": true }]]
1022
},
1123
"test": {
1224
"plugins": ["@babel/plugin-transform-modules-commonjs"]

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-css-transform",
3-
"version": "1.0.1",
3+
"version": "1.0.2",
44
"description": "A React component to help handle complex nested 2d and 3d css transformations ",
55
"main": "dist/cjs/index.js",
66
"module": "dist/esm/index.js",
@@ -65,6 +65,7 @@
6565
"@babel/cli": "^7.4.4",
6666
"@babel/core": "^7.4.4",
6767
"@babel/plugin-proposal-class-properties": "^7.4.4",
68+
"@babel/plugin-proposal-object-rest-spread": "^7.4.4",
6869
"@babel/plugin-syntax-dynamic-import": "^7.2.0",
6970
"@babel/plugin-transform-modules-commonjs": "^7.4.4",
7071
"@babel/plugin-transform-runtime": "^7.4.4",

0 commit comments

Comments
 (0)