Skip to content
This repository was archived by the owner on Feb 25, 2020. It is now read-only.

Commit d095ef0

Browse files
committed
Transform to commonjs imports
1 parent 8a80f6a commit d095ef0

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

package.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"test": "jest",
1515
"lint": "eslint .",
1616
"format": "eslint . --fix",
17-
"build": "babel --no-babelrc --plugins=transform-react-jsx,transform-class-properties,transform-object-rest-spread,transform-flow-strip-types src --copy-files --out-dir dist --ignore '**/__tests__/**'",
17+
"build": "babel --no-babelrc --plugins=transform-es2015-modules-commonjs,transform-react-jsx,transform-class-properties,transform-object-rest-spread,transform-flow-strip-types src --copy-files --out-dir dist --ignore '**/__tests__/**'",
1818
"prepare": "yarn build",
1919
"release": "release-it"
2020
},
@@ -49,9 +49,10 @@
4949
"babel-cli": "^6.26.0",
5050
"babel-jest": "^22.4.1",
5151
"babel-plugin-transform-class-properties": "^6.13.0",
52-
"babel-plugin-transform-react-jsx": "^6.18.0",
53-
"babel-plugin-transform-object-rest-spread": "^6.13.0",
52+
"babel-plugin-transform-es2015-modules-commonjs": "^6.26.2",
5453
"babel-plugin-transform-flow-strip-types": "^6.22.0",
54+
"babel-plugin-transform-object-rest-spread": "^6.13.0",
55+
"babel-plugin-transform-react-jsx": "^6.18.0",
5556
"babel-preset-react-native": "^4.0.0",
5657
"conventional-changelog-cli": "^2.0.5",
5758
"eslint": "^4.12.1",

yarn.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1429,7 +1429,7 @@ babel-plugin-transform-es2015-modules-amd@^6.22.0, babel-plugin-transform-es2015
14291429
babel-runtime "^6.22.0"
14301430
babel-template "^6.24.1"
14311431

1432-
babel-plugin-transform-es2015-modules-commonjs@6.x, babel-plugin-transform-es2015-modules-commonjs@^6.23.0, babel-plugin-transform-es2015-modules-commonjs@^6.24.1, babel-plugin-transform-es2015-modules-commonjs@^6.5.0, babel-plugin-transform-es2015-modules-commonjs@^6.8.0:
1432+
babel-plugin-transform-es2015-modules-commonjs@6.x, babel-plugin-transform-es2015-modules-commonjs@^6.23.0, babel-plugin-transform-es2015-modules-commonjs@^6.24.1, babel-plugin-transform-es2015-modules-commonjs@^6.26.2, babel-plugin-transform-es2015-modules-commonjs@^6.5.0, babel-plugin-transform-es2015-modules-commonjs@^6.8.0:
14331433
version "6.26.2"
14341434
resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-modules-commonjs/-/babel-plugin-transform-es2015-modules-commonjs-6.26.2.tgz#58a793863a9e7ca870bdc5a881117ffac27db6f3"
14351435
integrity sha512-CV9ROOHEdrjcwhIaJNBGMBCodN+1cfkwtM1SbUHmvyy35KGT7fohbpOxkE2uLz1o6odKK2Ck/tz47z+VqQfi9Q==

0 commit comments

Comments
 (0)