Skip to content
This repository was archived by the owner on Oct 23, 2023. It is now read-only.

Commit b2659fc

Browse files
authored
1 parent 0befaf8 commit b2659fc

File tree

6 files changed

+12
-14
lines changed

6 files changed

+12
-14
lines changed

.changeset/few-cougars-lay.md

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
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.

clean-package.config.json

+3-2
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,9 @@
55
"types": "dist/index.d.ts",
66
"exports": {
77
".": {
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"
1011
},
1112
"./package.json": "./package.json"
1213
}

packages/preact/tsup.config.ts

-3
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,4 @@ export default defineConfig({
44
clean: true,
55
format: ['cjs', 'esm'],
66
dts: true,
7-
outExtension(ctx) {
8-
return { js: `.${ctx.format}.js` }
9-
},
107
})

packages/react/tsup.config.ts

-3
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,4 @@ export default defineConfig({
44
clean: true,
55
format: ['cjs', 'esm'],
66
dts: true,
7-
outExtension(ctx) {
8-
return { js: `.${ctx.format}.js` }
9-
},
107
})

packages/solid/tsup.config.ts

-3
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,5 @@ export default defineConfig({
55
clean: true,
66
format: ['cjs', 'esm'],
77
dts: true,
8-
outExtension(ctx) {
9-
return { js: `.${ctx.format}.js` }
10-
},
118
esbuildPlugins: [solidPlugin()],
129
})

packages/vue/tsup.config.ts

+1-3
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@ export default defineConfig({
44
clean: true,
55
format: ['cjs', 'esm'],
66
dts: true,
7-
outExtension(ctx) {
8-
return { js: `.${ctx.format}.js` }
9-
},
7+
108
inject: ['./src/jsx-inject.ts'],
119
})

0 commit comments

Comments
 (0)