Skip to content

Commit

Permalink
feat: recover cjs entry
Browse files Browse the repository at this point in the history
  • Loading branch information
pd4d10 committed May 3, 2023
1 parent 25cd6df commit eb7da56
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,16 @@
"exports": {
".": {
"types": "./dist/index.d.ts",
"import": "./dist/index.js"
"import": "./dist/index.js",
"require": "./dist/index.cjs"
},
"./client": {
"types": "./client.d.ts"
}
},
"scripts": {
"dev": "tsc --watch",
"build": "tsc",
"build": "tsc --module commonjs && mv dist/index.js dist/index.cjs && tsc",
"prepare": "npm run build"
},
"repository": "pd4d10/vite-plugin-svgr",
Expand Down

0 comments on commit eb7da56

Please sign in to comment.