Skip to content

Commit

Permalink
馃摝 fix #3257 - Fix exports for react-native (#3258)
Browse files Browse the repository at this point in the history
* bug fix for #3257 - Fix exports for react-native

* Fix now-invalid incorrect exports format 

`"exports" cannot contain some keys starting with '.' and some not`
  • Loading branch information
cabiad committed Oct 25, 2020
1 parent 85b7b81 commit edebd70
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,11 @@
"dist"
],
"exports": {
"import": "./dist/index.esm.js",
"require": "./dist/index.js"
"./package.json": "./package.json",
".": {
"import": "./dist/index.esm.js",
"require": "./dist/index.js"
}
},
"scripts": {
"clean": "rimraf dist",
Expand Down

1 comment on commit edebd70

@misaruto
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's working for me. Thank you

Please sign in to comment.