Skip to content

Commit

Permalink
[enzyme-adapter-react-helper] [fix] use add-module-exports to avoid…
Browse files Browse the repository at this point in the history
… `.default` on the entry point.
  • Loading branch information
ljharb committed Nov 15, 2017
1 parent fc17d74 commit 11786ab
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
1 change: 0 additions & 1 deletion packages/enzyme-adapter-react-helper/.babelrc

This file was deleted.

7 changes: 7 additions & 0 deletions packages/enzyme-adapter-react-helper/.babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"presets": ["airbnb"],
"plugins": [
["transform-replace-object-assign", "object.assign"],
["add-module-exports"],
],
}
1 change: 1 addition & 0 deletions packages/enzyme-adapter-react-helper/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
"license": "MIT",
"devDependencies": {
"babel-cli": "^6.24.1",
"babel-plugin-add-module-exports": "^0.2.1",
"babel-plugin-transform-replace-object-assign": "^0.2.1",
"babel-preset-airbnb": "^2.4.0",
"enzyme": "^3.1.0",
Expand Down

0 comments on commit 11786ab

Please sign in to comment.