Skip to content

Commit 7b2a3ba

Browse files
chore: switch native compiler to renamed @dom-expressions/compiler
The jsx-compiler package family was renamed upstream (the binary is growing beyond the JSX transform). Same version, no API changes; the lockfile was rebuilt fresh since the old names were dropped from the minimum-release-age exclusions. Co-authored-by: Cursor <cursoragent@cursor.com>
1 parent 2265d4a commit 7b2a3ba

7 files changed

Lines changed: 1805 additions & 2124 deletions

File tree

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
"vite-plugin-solid": patch
3+
---
4+
5+
Follow the native compiler package rename: `@dom-expressions/jsx-compiler` is
6+
now `@dom-expressions/compiler` (the binary is growing beyond the JSX
7+
transform, so the name no longer singles out one pass). No option or behavior
8+
changes — `jsx: "native"` works exactly as before.

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ This will force SSR code in the produced files.
136136
- Default: `"babel"`
137137

138138
Choose the JSX compiler backend. `"babel"` keeps using `babel-preset-solid`.
139-
`"native"` uses the native compiler from `@dom-expressions/jsx-compiler`.
139+
`"native"` uses the native compiler from `@dom-expressions/compiler`.
140140
The native compiler requires native Node addon support, so environments that
141141
disable native addons (for example StackBlitz WebContainers) should use the
142142
default `"babel"` compiler.
@@ -159,7 +159,7 @@ Pass any additional [babel transform options](https://babeljs.io/docs/en/options
159159

160160
#### options.solid
161161

162-
- Type: [@dom-expressions/jsx-compiler](https://github.com/ryansolid/dom-expressions/tree/main/packages/jsx-compiler#options) / [@dom-expressions/babel-plugin-jsx](https://github.com/ryansolid/dom-expressions/tree/main/packages/babel-plugin-jsx#plugin-options)
162+
- Type: [@dom-expressions/compiler](https://github.com/ryansolid/dom-expressions/tree/main/packages/compiler#options) / [@dom-expressions/babel-plugin-jsx](https://github.com/ryansolid/dom-expressions/tree/main/packages/babel-plugin-jsx#plugin-options)
163163
- Default: {}
164164

165165
Pass additional DOM Expressions JSX compiler options. They will be merged with

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
"homepage": "https://github.com/solidjs/vite-plugin-solid#readme",
4646
"dependencies": {
4747
"@babel/core": "^7.23.3",
48-
"@dom-expressions/jsx-compiler": "0.50.0-next.22",
48+
"@dom-expressions/compiler": "0.50.0-next.22",
4949
"@types/babel__core": "^7.20.4",
5050
"babel-preset-solid": ">=2.0.0-beta.19 <2.0.0-experimental.0",
5151
"merge-anything": "^5.1.7",

0 commit comments

Comments
 (0)