@rsbuild/plugin-solid 1.0.3 → 1.0.4

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 CHANGED
@@ -42,13 +42,11 @@ const src_require = (0, external_node_module_namespaceObject.createRequire)(/*#_
42
42
  return 'undefined' == typeof document ? new (module.require('url'.replace('', ''))).URL('file:' + __filename).href : document.currentScript && document.currentScript.src || new URL('main.js', document.baseURI).href;
43
43
  }());
44
44
  const PLUGIN_SOLID_NAME = 'rsbuild:solid';
45
- function pluginSolid() {
46
- let options = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {};
45
+ function pluginSolid(options = {}) {
47
46
  return {
48
47
  name: PLUGIN_SOLID_NAME,
49
48
  setup (api) {
50
- api.modifyBundlerChain(async (chain, param)=>{
51
- let { CHAIN_ID, environment, isProd, target } = param;
49
+ api.modifyBundlerChain(async (chain, { CHAIN_ID, environment, isProd, target })=>{
52
50
  const environmentConfig = environment.config;
53
51
  (0, plugin_babel_namespaceObject.modifyBabelLoaderOptions)({
54
52
  chain,
package/dist/index.js CHANGED
@@ -2,13 +2,11 @@ import * as __WEBPACK_EXTERNAL_MODULE_node_module__ from "node:module";
2
2
  import * as __WEBPACK_EXTERNAL_MODULE__rsbuild_plugin_babel__ from "@rsbuild/plugin-babel";
3
3
  const src_require = (0, __WEBPACK_EXTERNAL_MODULE_node_module__.createRequire)(import.meta.url);
4
4
  const PLUGIN_SOLID_NAME = 'rsbuild:solid';
5
- function pluginSolid() {
6
- let options = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {};
5
+ function pluginSolid(options = {}) {
7
6
  return {
8
7
  name: PLUGIN_SOLID_NAME,
9
8
  setup (api) {
10
- api.modifyBundlerChain(async (chain, param)=>{
11
- let { CHAIN_ID, environment, isProd, target } = param;
9
+ api.modifyBundlerChain(async (chain, { CHAIN_ID, environment, isProd, target })=>{
12
10
  const environmentConfig = environment.config;
13
11
  (0, __WEBPACK_EXTERNAL_MODULE__rsbuild_plugin_babel__.modifyBabelLoaderOptions)({
14
12
  chain,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rsbuild/plugin-solid",
3
- "version": "1.0.3",
3
+ "version": "1.0.4",
4
4
  "description": "Solid plugin for Rsbuild",
5
5
  "homepage": "https://rsbuild.dev",
6
6
  "repository": {
@@ -23,18 +23,18 @@
23
23
  "dist"
24
24
  ],
25
25
  "dependencies": {
26
- "babel-preset-solid": "^1.9.2",
26
+ "babel-preset-solid": "^1.9.3",
27
27
  "solid-refresh": "0.6.3",
28
- "@rsbuild/plugin-babel": "1.0.2"
28
+ "@rsbuild/plugin-babel": "1.0.3"
29
29
  },
30
30
  "devDependencies": {
31
31
  "@types/babel__core": "^7.20.5",
32
32
  "typescript": "^5.6.3",
33
- "@scripts/test-helper": "1.0.1",
34
- "@rsbuild/core": "1.0.14"
33
+ "@rsbuild/core": "1.0.19",
34
+ "@scripts/test-helper": "1.0.1"
35
35
  },
36
36
  "peerDependencies": {
37
- "@rsbuild/core": "1.x || ^1.0.1-rc.0"
37
+ "@rsbuild/core": "1.x"
38
38
  },
39
39
  "publishConfig": {
40
40
  "access": "public",