Skip to content

Commit 01afbee

Browse files
committed
Define module entry points for ESM and CommonJS in package.json
1 parent 8048f4d commit 01afbee

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

packages/extractor.vite/package.json

+7
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,13 @@
3838
"jsnext:main": "./dist/index.mjs",
3939
"esnext": "./dist/index.mjs",
4040
"types": "./dist/index.d.ts",
41+
"exports": {
42+
".": {
43+
"import": "./dist/index.mjs",
44+
"require": "./dist/index.cjs",
45+
"types": "./dist/index.d.ts"
46+
}
47+
},
4148
"files": [
4249
"dist"
4350
],

0 commit comments

Comments
 (0)