@rsbuild/plugin-solid 1.0.7 → 1.1.0

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.
Files changed (2) hide show
  1. package/dist/types.d.ts +26 -5
  2. package/package.json +6 -6
package/dist/types.d.ts CHANGED
@@ -11,10 +11,15 @@ export type SolidPresetOptions = {
11
11
  */
12
12
  moduleName?: string;
13
13
  /**
14
- * The output mode of the compiler. Can be "dom"(default), "ssr". "dom" is standard output. "ssr" is for server side rendering of strings.
15
- * @default 'dom'
14
+ * The output mode of the compiler.
15
+ * Can be:
16
+ * - "dom" is standard output
17
+ * - "ssr" is for server side rendering of strings.
18
+ * - "universal" is for using custom renderers from solid-js/universal
19
+ *
20
+ * @default "dom"
16
21
  */
17
- generate?: 'dom' | 'ssr';
22
+ generate?: 'ssr' | 'dom' | 'universal';
18
23
  /**
19
24
  * Indicate whether the output should contain hydratable markers.
20
25
  * @default false
@@ -61,8 +66,24 @@ export type SolidPresetOptions = {
61
66
  */
62
67
  validate?: boolean;
63
68
  /**
64
- * Removes unnecessary closing tags from the template output.
65
- * @default true
69
+ * Remove unnecessary closing tags from template strings. More info here:
70
+ * https://github.com/solidjs/solid/blob/main/CHANGELOG.md#smaller-templates
71
+ *
72
+ * @default false
66
73
  */
67
74
  omitNestedClosingTags?: boolean;
75
+ /**
76
+ * Remove the last closing tag from template strings. Enabled by default even when `omitNestedClosingTags` is disabled.
77
+ * Can be disabled for compatibility for some browser-like environments.
78
+ *
79
+ * @default true
80
+ */
81
+ omitLastClosingTag?: boolean;
82
+ /**
83
+ * Remove unnecessary quotes from template strings.
84
+ * Can be disabled for compatibility for some browser-like environments.
85
+ *
86
+ * @default true
87
+ */
88
+ omitQuotes?: boolean;
68
89
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rsbuild/plugin-solid",
3
- "version": "1.0.7",
3
+ "version": "1.1.0",
4
4
  "description": "Solid plugin for Rsbuild",
5
5
  "homepage": "https://rsbuild.rs",
6
6
  "repository": {
@@ -24,15 +24,15 @@
24
24
  ],
25
25
  "dependencies": {
26
26
  "babel-preset-solid": "^1.9.10",
27
- "solid-refresh": "0.6.3",
28
- "@rsbuild/plugin-babel": "1.0.7"
27
+ "solid-refresh": "^0.7.6",
28
+ "@rsbuild/plugin-babel": "1.1.0"
29
29
  },
30
30
  "devDependencies": {
31
- "@rslib/core": "0.19.1",
31
+ "@rslib/core": "0.19.6",
32
32
  "@types/babel__core": "^7.20.5",
33
33
  "typescript": "^5.9.3",
34
- "@scripts/test-helper": "1.0.1",
35
- "@rsbuild/core": "1.7.2"
34
+ "@rsbuild/core": "2.0.0-beta.6",
35
+ "@scripts/test-helper": "1.0.1"
36
36
  },
37
37
  "peerDependencies": {
38
38
  "@rsbuild/core": "^1.0.0 || ^2.0.0-0"