Skip to content

Commit 7922f26

Browse files
committed
Add native ESM support
1 parent 226f083 commit 7922f26

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

package.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@
66
"module": "dist/esm/index.js",
77
"source": "src/index.js",
88
"sideEffects": false,
9+
"type": "module",
10+
"exports": {
11+
"default": "./dist/esm/index.js"
12+
},
913
"scripts": {
1014
"build": "yarn build-esm && yarn build-umd",
1115
"build-esm": "BABEL_ENV=production-esm babel src -d dist/esm --ignore **/*.spec.js",

0 commit comments

Comments
 (0)