Skip to content

Commit 4570738

Browse files
set module exports key.
1 parent 08802d5 commit 4570738

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
@@ -18,6 +18,10 @@
1818
"main": "dist/idiomorph.js",
1919
"module": "dist/idiomorph.esm.js",
2020
"unpkg": "dist/idiomorph.min.js",
21+
"exports": {
22+
"require": "./dist/idiomorph.cjs.js",
23+
"import": "./dist/idiomorph.esm.js"
24+
},
2125
"scripts": {
2226
"test": "web-test-runner",
2327
"test:coverage": "npm run ci && node test/lib/ensure-full-coverage.js",

0 commit comments

Comments
 (0)