File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed
Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -21,7 +21,6 @@ const rewriteProtoPathMjs = {
2121} ;
2222
2323export default defineConfig ( [
24- // CommonJS build
2524 {
2625 entry : "src/**/*.ts" ,
2726 unbundle : true ,
@@ -32,14 +31,13 @@ export default defineConfig([
3231 treeshake : false ,
3332 plugins : [ rewriteProtoPath ] ,
3433 } ,
35- // ESM build (outputs .mjs files, no package.json needed)
3634 {
3735 entry : "src/**/*.ts" ,
3836 unbundle : true ,
3937 format : "esm" ,
4038 outDir : "lib/esm" ,
41- clean : false , // Don't clean since CJS already cleaned
42- dts : false , // Only need types once ( from CJS build)
39+ clean : false , // Don't clean - need to keep cjs/ output
40+ dts : false , // Already created from CJS build
4341 treeshake : false ,
4442 plugins : [ rewriteProtoPathMjs ] ,
4543 } ,
You can’t perform that action at this time.
0 commit comments