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

Commit 4b9afcd

Browse files
authored
fix(solid): use esbuild solid plugin to transform jsx (#37)
1 parent d4b5b4d commit 4b9afcd

File tree

4 files changed

+261
-5
lines changed

4 files changed

+261
-5
lines changed

.changeset/polite-yaks-warn.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@polymorphic-factory/solid': patch
3+
---
4+
5+
Fixed an issue where the JSX was preserved in the build output.

packages/solid/package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,8 @@
3939
"@types/testing-library__jest-dom": "5.14.5",
4040
"@vitest/coverage-c8": "0.25.1",
4141
"clean-package": "2.1.2",
42+
"esbuild": "0.15.14",
43+
"esbuild-plugin-solid": "0.4.2",
4244
"jsdom": "20.0.2",
4345
"solid-js": "1.6.2",
4446
"solid-testing-library": "0.5.0",

packages/solid/tsup.config.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import { defineConfig } from 'tsup'
2+
import { solidPlugin } from 'esbuild-plugin-solid'
23

34
export default defineConfig({
45
clean: true,
@@ -7,4 +8,5 @@ export default defineConfig({
78
outExtension(ctx) {
89
return { js: `.${ctx.format}.js` }
910
},
11+
esbuildPlugins: [solidPlugin()],
1012
})

0 commit comments

Comments
 (0)