@tsrx/bun-plugin-solid 0.0.86 → 0.0.88

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 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) follows the
41
- DOM output, and with `generate: 'ssr'` and `hydratable: true` the SSR output as
42
- well. With `generate: 'ssr'` alone it follows the DOM output only, so a `yield`
43
- that only the non-hydratable SSR output moves isn't reported.
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.86",
6
+ "version": "0.0.88",
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.4",
27
- "@tsrx/solid": "0.4.4"
26
+ "@tsrx/core": "0.6.6",
27
+ "@tsrx/solid": "0.4.6"
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 follows it for the hydratable output, which moves more.
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 also follows the SSR output, which moves
15
- * more template values into arrows than the DOM output does.
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
  }