Skip to content

Commit ed4bca5

Browse files
committed
fix: add package exports field for correct interop and bundler support
1 parent a22871f commit ed4bca5

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,3 +31,6 @@ flow-coverage/
3131
.env.production.local
3232

3333
npm-debug.log*
34+
35+
# IDE settings
36+
.idea

package.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,15 @@
4747
"preact",
4848
"flow-typed"
4949
],
50+
"exports": {
51+
".": {
52+
"import": "./dist/downshift.esm.js",
53+
"require": "./dist/downshift.cjs.js"
54+
},
55+
"./react-native": {
56+
"require": "./dist/downshift.native.cjs.js"
57+
}
58+
},
5059
"keywords": [
5160
"enhanced input",
5261
"react",

0 commit comments

Comments
 (0)