Skip to content

Commit

Permalink
build: change ESM import to plugin to prevent import errors
Browse files Browse the repository at this point in the history
Import error on ESM would be "Export assignment cannot be used when targeting ECMAScript modules.".
  • Loading branch information
jdbruijn committed Jun 22, 2023
1 parent fdbf9d3 commit c185ce3
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,10 @@
"type": "module",
"exports": {
".": {
"import": "./dist/index.js",
"import": "./dist/plugin.js",
"require": "./dist/index.cjs"
}
},
"types": "./dist/index.d.ts",
"files": [
"./dist/**/!(*.test).{js,d.ts,cjs}"
],
Expand Down

0 comments on commit c185ce3

Please sign in to comment.