@rsbuild/plugin-solid 1.0.0-alpha.6 → 1.0.0-alpha.7
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/dist/index.cjs +7 -5
- package/dist/index.js +7 -5
- package/package.json +5 -5
package/dist/index.cjs
CHANGED
|
@@ -47,11 +47,13 @@ function pluginSolid(options = {}) {
|
|
|
47
47
|
chain,
|
|
48
48
|
CHAIN_ID,
|
|
49
49
|
modifier: (babelOptions) => {
|
|
50
|
-
babelOptions.presets
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
50
|
+
babelOptions.presets = [
|
|
51
|
+
[
|
|
52
|
+
require.resolve("babel-preset-solid"),
|
|
53
|
+
options.solidPresetOptions || {}
|
|
54
|
+
]
|
|
55
|
+
];
|
|
56
|
+
babelOptions.parserOpts = { plugins: ["jsx", "typescript"] };
|
|
55
57
|
const usingHMR = !isProd && environmentConfig.dev.hmr && target === "web";
|
|
56
58
|
if (usingHMR) {
|
|
57
59
|
babelOptions.plugins ??= [];
|
package/dist/index.js
CHANGED
|
@@ -27,11 +27,13 @@ function pluginSolid(options = {}) {
|
|
|
27
27
|
chain,
|
|
28
28
|
CHAIN_ID,
|
|
29
29
|
modifier: (babelOptions) => {
|
|
30
|
-
babelOptions.presets
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
30
|
+
babelOptions.presets = [
|
|
31
|
+
[
|
|
32
|
+
__require.resolve("babel-preset-solid"),
|
|
33
|
+
options.solidPresetOptions || {}
|
|
34
|
+
]
|
|
35
|
+
];
|
|
36
|
+
babelOptions.parserOpts = { plugins: ["jsx", "typescript"] };
|
|
35
37
|
const usingHMR = !isProd && environmentConfig.dev.hmr && target === "web";
|
|
36
38
|
if (usingHMR) {
|
|
37
39
|
babelOptions.plugins ??= [];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rsbuild/plugin-solid",
|
|
3
|
-
"version": "1.0.0-alpha.
|
|
3
|
+
"version": "1.0.0-alpha.7",
|
|
4
4
|
"description": "Solid plugin for Rsbuild",
|
|
5
5
|
"homepage": "https://rsbuild.dev",
|
|
6
6
|
"repository": {
|
|
@@ -25,16 +25,16 @@
|
|
|
25
25
|
"dependencies": {
|
|
26
26
|
"babel-preset-solid": "^1.8.18",
|
|
27
27
|
"solid-refresh": "0.6.3",
|
|
28
|
-
"@rsbuild/plugin-babel": "1.0.0-alpha.
|
|
28
|
+
"@rsbuild/plugin-babel": "1.0.0-alpha.7"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
31
|
"@types/babel__core": "^7.20.5",
|
|
32
32
|
"typescript": "^5.5.2",
|
|
33
|
-
"@rsbuild/core": "1.0.0-alpha.
|
|
34
|
-
"@scripts/test-helper": "1.0.0-alpha.
|
|
33
|
+
"@rsbuild/core": "1.0.0-alpha.7",
|
|
34
|
+
"@scripts/test-helper": "1.0.0-alpha.7"
|
|
35
35
|
},
|
|
36
36
|
"peerDependencies": {
|
|
37
|
-
"@rsbuild/core": "^1.0.0-alpha.
|
|
37
|
+
"@rsbuild/core": "^1.0.0-alpha.7"
|
|
38
38
|
},
|
|
39
39
|
"publishConfig": {
|
|
40
40
|
"access": "public",
|