Skip to content
This repository has been archived by the owner on Jun 22, 2023. It is now read-only.

Commit

Permalink
Add commonjs support back to babelrc
Browse files Browse the repository at this point in the history
  • Loading branch information
mondaychen committed Mar 5, 2019
1 parent ddb9acd commit 6a7315d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .babelrc
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,11 @@
],
"@babel/preset-react"
],
"plugins": ["@babel/plugin-transform-runtime", "@babel/plugin-proposal-object-rest-spread"],
"plugins": [
"@babel/plugin-transform-runtime",
"@babel/plugin-proposal-object-rest-spread",
"@babel/plugin-transform-modules-commonjs"
],
"env": {
"test": {
"presets": ["@babel/preset-env", "@babel/preset-react"]
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@
"@babel/cli": "^7.2.3",
"@babel/core": "^7.2.2",
"@babel/plugin-proposal-object-rest-spread": "^7.2.0",
"@babel/plugin-transform-modules-commonjs": "^7.2.0",
"@babel/plugin-transform-runtime": "^7.2.0",
"@babel/polyfill": "^7.2.5",
"@babel/preset-env": "^7.3.1",
Expand Down

0 comments on commit 6a7315d

Please sign in to comment.