Skip to content

Commit eb7da56

Browse files
committed
feat: recover cjs entry
1 parent 25cd6df commit eb7da56

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

package.json

+3-2
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,16 @@
88
"exports": {
99
".": {
1010
"types": "./dist/index.d.ts",
11-
"import": "./dist/index.js"
11+
"import": "./dist/index.js",
12+
"require": "./dist/index.cjs"
1213
},
1314
"./client": {
1415
"types": "./client.d.ts"
1516
}
1617
},
1718
"scripts": {
1819
"dev": "tsc --watch",
19-
"build": "tsc",
20+
"build": "tsc --module commonjs && mv dist/index.js dist/index.cjs && tsc",
2021
"prepare": "npm run build"
2122
},
2223
"repository": "pd4d10/vite-plugin-svgr",

0 commit comments

Comments
 (0)