Skip to content

Commit c185ce3

Browse files
committed
build: change ESM import to plugin to prevent import errors
Import error on ESM would be "Export assignment cannot be used when targeting ECMAScript modules.".
1 parent fdbf9d3 commit c185ce3

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

package.json

+1-2
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,10 @@
2121
"type": "module",
2222
"exports": {
2323
".": {
24-
"import": "./dist/index.js",
24+
"import": "./dist/plugin.js",
2525
"require": "./dist/index.cjs"
2626
}
2727
},
28-
"types": "./dist/index.d.ts",
2928
"files": [
3029
"./dist/**/!(*.test).{js,d.ts,cjs}"
3130
],

0 commit comments

Comments
 (0)