@tsrx/bun-plugin-solid 0.0.86 → 0.0.87
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -4
- package/package.json +3 -3
- package/src/index.js +2 -1
- package/types/index.d.ts +3 -2
package/README.md
CHANGED
|
@@ -37,10 +37,11 @@ Bun.plugin(tsrxSolid());
|
|
|
37
37
|
## Options
|
|
38
38
|
|
|
39
39
|
- `solid`: options forwarded to `babel-preset-solid`. TSRX2034 (a `yield` in a
|
|
40
|
-
template value that Solid's JSX compiler moves out of its generator)
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
40
|
+
template value that Solid's JSX compiler moves out of its generator) and
|
|
41
|
+
TSRX2021 for an `await` it moves out of its async function follow the DOM
|
|
42
|
+
output, and with `generate: 'ssr'` and `hydratable: true` the SSR output as
|
|
43
|
+
well. With `generate: 'ssr'` alone they follow the DOM output only, so a `yield`
|
|
44
|
+
or `await` that only the non-hydratable SSR output moves isn't reported.
|
|
44
45
|
- `runtimeImports`: helper import mode (`'compiler'` by default, or `'direct'` for
|
|
45
46
|
standalone runtime imports).
|
|
46
47
|
- `platform`: optional override/fallback for the compile-time platform. Normally
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"description": "Bun plugin for @tsrx/solid (.tsrx modules)",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"author": "Dominic Gannaway",
|
|
6
|
-
"version": "0.0.
|
|
6
|
+
"version": "0.0.87",
|
|
7
7
|
"type": "module",
|
|
8
8
|
"publishConfig": {
|
|
9
9
|
"access": "public"
|
|
@@ -23,8 +23,8 @@
|
|
|
23
23
|
"@babel/core": "^7.29.0",
|
|
24
24
|
"@babel/preset-typescript": "^7.28.5",
|
|
25
25
|
"babel-preset-solid": "2.0.0-rc.3",
|
|
26
|
-
"@tsrx/core": "0.6.
|
|
27
|
-
"@tsrx/solid": "0.4.
|
|
26
|
+
"@tsrx/core": "0.6.5",
|
|
27
|
+
"@tsrx/solid": "0.4.5"
|
|
28
28
|
},
|
|
29
29
|
"peerDependencies": {
|
|
30
30
|
"@solidjs/web": "2.0.0-rc.3",
|
package/src/index.js
CHANGED
|
@@ -202,7 +202,8 @@ export function tsrxSolid(options = {}) {
|
|
|
202
202
|
runtimeImports: options.runtimeImports,
|
|
203
203
|
platform,
|
|
204
204
|
// babel-preset-solid compiles the SSR output with `generate: 'ssr'`.
|
|
205
|
-
// TSRX2034
|
|
205
|
+
// TSRX2034 (`yield`) and TSRX2021 (`await`) follow it for the
|
|
206
|
+
// hydratable output, which moves more.
|
|
206
207
|
ssr: solid_options?.generate === 'ssr' && !!solid_options.hydratable,
|
|
207
208
|
};
|
|
208
209
|
if (platform !== undefined && build.config) {
|
package/types/index.d.ts
CHANGED
|
@@ -11,8 +11,9 @@ export interface TsrxSolidBunPluginOptions {
|
|
|
11
11
|
emitCss?: boolean;
|
|
12
12
|
/**
|
|
13
13
|
* Options forwarded to `babel-preset-solid`. With `generate: 'ssr'` and
|
|
14
|
-
* `hydratable: true`, TSRX2034
|
|
15
|
-
*
|
|
14
|
+
* `hydratable: true`, TSRX2034 (a `yield` in a template value) and TSRX2021
|
|
15
|
+
* (an `await` there) also follow the SSR output, which moves more template
|
|
16
|
+
* values into arrows than the DOM output does.
|
|
16
17
|
*/
|
|
17
18
|
solid?: object;
|
|
18
19
|
}
|