This repository was archived by the owner on Oct 23, 2023. It is now read-only.
File tree 6 files changed +12
-14
lines changed
6 files changed +12
-14
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ ' @polymorphic-factory/preact ' : patch
3
+ ' @polymorphic-factory/react ' : patch
4
+ ' @polymorphic-factory/solid ' : patch
5
+ ' @polymorphic-factory/vue ' : patch
6
+ ---
7
+
8
+ Fixed an issue where the esm export was picked up as cjs.
Original file line number Diff line number Diff line change 5
5
"types" : " dist/index.d.ts" ,
6
6
"exports" : {
7
7
"." : {
8
- "import" : " ./dist/index.esm.js" ,
9
- "require" : " ./dist/index.cjs.js"
8
+ "types" : " ./dist/index.d.ts" ,
9
+ "import" : " ./dist/index.mjs" ,
10
+ "require" : " ./dist/index.js"
10
11
},
11
12
"./package.json" : " ./package.json"
12
13
}
Original file line number Diff line number Diff line change @@ -4,7 +4,4 @@ export default defineConfig({
4
4
clean : true ,
5
5
format : [ 'cjs' , 'esm' ] ,
6
6
dts : true ,
7
- outExtension ( ctx ) {
8
- return { js : `.${ ctx . format } .js` }
9
- } ,
10
7
} )
Original file line number Diff line number Diff line change @@ -4,7 +4,4 @@ export default defineConfig({
4
4
clean : true ,
5
5
format : [ 'cjs' , 'esm' ] ,
6
6
dts : true ,
7
- outExtension ( ctx ) {
8
- return { js : `.${ ctx . format } .js` }
9
- } ,
10
7
} )
Original file line number Diff line number Diff line change @@ -5,8 +5,5 @@ export default defineConfig({
5
5
clean : true ,
6
6
format : [ 'cjs' , 'esm' ] ,
7
7
dts : true ,
8
- outExtension ( ctx ) {
9
- return { js : `.${ ctx . format } .js` }
10
- } ,
11
8
esbuildPlugins : [ solidPlugin ( ) ] ,
12
9
} )
Original file line number Diff line number Diff line change @@ -4,8 +4,6 @@ export default defineConfig({
4
4
clean : true ,
5
5
format : [ 'cjs' , 'esm' ] ,
6
6
dts : true ,
7
- outExtension ( ctx ) {
8
- return { js : `.${ ctx . format } .js` }
9
- } ,
7
+
10
8
inject : [ './src/jsx-inject.ts' ] ,
11
9
} )
You can’t perform that action at this time.
0 commit comments