Skip to content

Commit 2996a25

Browse files
committed
fix(exports): allow import as esm
1 parent 802b7c1 commit 2996a25

1 file changed

Lines changed: 7 additions & 4 deletions

File tree

package.json

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,14 @@
66
"source": "index.js",
77
"exports": {
88
"require": "./dist/index.cjs",
9-
"default": "./dist/index.modern.js"
9+
"default": "./index.js"
1010
},
1111
"main": "./dist/index.cjs",
12-
"module": "./dist/index.module.js",
12+
"module": "./index.js",
1313
"unpkg": "./dist/index.umd.js",
1414
"scripts": {
15-
"build": "microbundle build --external none --alias node-fetch=unfetch,debug=src/debug.browser.js",
16-
"build:dev": "microbundle build --external none --alias node-fetch=unfetch",
15+
"build": "microbundle build --format cjs,umd --external none --alias node-fetch=unfetch,debug=src/debug.browser.js",
16+
"build:dev": "microbundle build --format cjs,umd --external none --alias node-fetch=unfetch",
1717
"test": "npm run lint && npm run ava:coverage",
1818
"ava:coverage": "NODE_OPTIONS='--no-warnings --loader=esmock' c8 --100 ava",
1919
"ava": "NODE_OPTIONS='--no-warnings --loader=esmock' ava",
@@ -23,6 +23,9 @@
2323
},
2424
"license": "MIT",
2525
"files": [
26+
"index.js",
27+
"src/content.js",
28+
"src/search.js",
2629
"dist/"
2730
],
2831
"dependencies": {

0 commit comments

Comments
 (0)