@rsbuild/plugin-solid 0.3.0 → 0.3.2
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.d.ts +2 -1
- package/dist/index.js +6 -2
- package/dist/index.mjs +5 -2
- package/package.json +5 -5
package/dist/index.d.ts
CHANGED
|
@@ -72,6 +72,7 @@ type SolidPresetOptions = {
|
|
|
72
72
|
type PluginSolidPresetOptions = {
|
|
73
73
|
solidPresetOptions?: SolidPresetOptions;
|
|
74
74
|
};
|
|
75
|
+
declare const PLUGIN_SOLID_NAME = "rsbuild:solid";
|
|
75
76
|
declare function pluginSolid(options?: PluginSolidPresetOptions): RsbuildPlugin;
|
|
76
77
|
|
|
77
|
-
export { PluginSolidPresetOptions, pluginSolid };
|
|
78
|
+
export { PLUGIN_SOLID_NAME, PluginSolidPresetOptions, pluginSolid };
|
package/dist/index.js
CHANGED
|
@@ -30,14 +30,17 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
30
30
|
// src/index.ts
|
|
31
31
|
var src_exports = {};
|
|
32
32
|
__export(src_exports, {
|
|
33
|
+
PLUGIN_SOLID_NAME: () => PLUGIN_SOLID_NAME,
|
|
33
34
|
pluginSolid: () => pluginSolid
|
|
34
35
|
});
|
|
35
36
|
module.exports = __toCommonJS(src_exports);
|
|
37
|
+
var import_core = require("@rsbuild/core");
|
|
36
38
|
var import_plugin_babel = require("@rsbuild/plugin-babel");
|
|
39
|
+
var PLUGIN_SOLID_NAME = "rsbuild:solid";
|
|
37
40
|
function pluginSolid(options = {}) {
|
|
38
41
|
return {
|
|
39
|
-
name:
|
|
40
|
-
pre: [
|
|
42
|
+
name: PLUGIN_SOLID_NAME,
|
|
43
|
+
pre: [import_core.PLUGIN_BABEL_NAME],
|
|
41
44
|
setup(api) {
|
|
42
45
|
api.modifyBundlerChain(async (chain, { CHAIN_ID, isProd }) => {
|
|
43
46
|
const rsbuildConfig = api.getNormalizedConfig();
|
|
@@ -68,5 +71,6 @@ function pluginSolid(options = {}) {
|
|
|
68
71
|
}
|
|
69
72
|
// Annotate the CommonJS export names for ESM import in node:
|
|
70
73
|
0 && (module.exports = {
|
|
74
|
+
PLUGIN_SOLID_NAME,
|
|
71
75
|
pluginSolid
|
|
72
76
|
});
|
package/dist/index.mjs
CHANGED
|
@@ -15,11 +15,13 @@ import { createRequire } from "module";
|
|
|
15
15
|
global.require = createRequire(import.meta.url);
|
|
16
16
|
|
|
17
17
|
// src/index.ts
|
|
18
|
+
import { PLUGIN_BABEL_NAME } from "@rsbuild/core";
|
|
18
19
|
import { modifyBabelLoaderOptions } from "@rsbuild/plugin-babel";
|
|
20
|
+
var PLUGIN_SOLID_NAME = "rsbuild:solid";
|
|
19
21
|
function pluginSolid(options = {}) {
|
|
20
22
|
return {
|
|
21
|
-
name:
|
|
22
|
-
pre: [
|
|
23
|
+
name: PLUGIN_SOLID_NAME,
|
|
24
|
+
pre: [PLUGIN_BABEL_NAME],
|
|
23
25
|
setup(api) {
|
|
24
26
|
api.modifyBundlerChain(async (chain, { CHAIN_ID, isProd }) => {
|
|
25
27
|
const rsbuildConfig = api.getNormalizedConfig();
|
|
@@ -51,5 +53,6 @@ function pluginSolid(options = {}) {
|
|
|
51
53
|
};
|
|
52
54
|
}
|
|
53
55
|
export {
|
|
56
|
+
PLUGIN_SOLID_NAME,
|
|
54
57
|
pluginSolid
|
|
55
58
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rsbuild/plugin-solid",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.2",
|
|
4
4
|
"description": "Solid plugin for Rsbuild",
|
|
5
5
|
"homepage": "https://rsbuild.dev",
|
|
6
6
|
"repository": {
|
|
@@ -25,14 +25,14 @@
|
|
|
25
25
|
"dependencies": {
|
|
26
26
|
"babel-preset-solid": "^1.8.6",
|
|
27
27
|
"solid-refresh": "^0.6.0",
|
|
28
|
-
"@rsbuild/
|
|
29
|
-
"@rsbuild/
|
|
28
|
+
"@rsbuild/plugin-babel": "0.3.2",
|
|
29
|
+
"@rsbuild/shared": "0.3.2"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
32
|
"@types/babel__core": "^7.20.3",
|
|
33
33
|
"typescript": "^5.3.0",
|
|
34
|
-
"@rsbuild/core": "0.3.
|
|
35
|
-
"@
|
|
34
|
+
"@rsbuild/core": "0.3.2",
|
|
35
|
+
"@scripts/test-helper": "1.0.0"
|
|
36
36
|
},
|
|
37
37
|
"peerDependencies": {
|
|
38
38
|
"@rsbuild/core": "0.x"
|