@rsbuild/plugin-styled-components 1.4.0 → 1.5.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.
package/README.md CHANGED
@@ -22,9 +22,15 @@ If you have any requirements, it is recommended to file an issue to [SWC plugins
22
22
  Install:
23
23
 
24
24
  ```bash
25
- # `@rsbuild/core` >= 1.2.0
25
+ # `@rsbuild/core` >= 1.6.0
26
26
  npm add @rsbuild/plugin-styled-components -D
27
27
 
28
+ # `@rsbuild/core` 1.4.x ~ 1.5.x
29
+ npm add @rsbuild/plugin-styled-components@1.4.1 -D
30
+
31
+ # `@rsbuild/core` 1.2.x ~ 1.3.x
32
+ npm add @rsbuild/plugin-styled-components@1.3.0 -D
33
+
28
34
  # `@rsbuild/core` < 1.2.0
29
35
  npm add @rsbuild/plugin-styled-components@1.1.0 -D
30
36
  ```
package/dist/index.cjs CHANGED
@@ -27,8 +27,8 @@ var __webpack_require__ = {};
27
27
  var __webpack_exports__ = {};
28
28
  __webpack_require__.r(__webpack_exports__);
29
29
  __webpack_require__.d(__webpack_exports__, {
30
- pluginStyledComponents: ()=>pluginStyledComponents,
31
- PLUGIN_STYLED_COMPONENTS_NAME: ()=>PLUGIN_STYLED_COMPONENTS_NAME
30
+ PLUGIN_STYLED_COMPONENTS_NAME: ()=>PLUGIN_STYLED_COMPONENTS_NAME,
31
+ pluginStyledComponents: ()=>pluginStyledComponents
32
32
  });
33
33
  const external_node_module_namespaceObject = require("node:module");
34
34
  const external_reduce_configs_namespaceObject = require("reduce-configs");
package/dist/index.js CHANGED
@@ -1,6 +1,6 @@
1
- import * as __WEBPACK_EXTERNAL_MODULE_node_module_ab9f2194__ from "node:module";
2
- import * as __WEBPACK_EXTERNAL_MODULE_reduce_configs_02786df6__ from "reduce-configs";
3
- const src_require = (0, __WEBPACK_EXTERNAL_MODULE_node_module_ab9f2194__.createRequire)(import.meta.url);
1
+ import { createRequire } from "node:module";
2
+ import { reduceConfigs } from "reduce-configs";
3
+ const src_require = createRequire(import.meta.url);
4
4
  function isServerTarget(target) {
5
5
  return Array.isArray(target) ? target.includes('node') : 'node' === target;
6
6
  }
@@ -17,7 +17,7 @@ const pluginStyledComponents = (pluginOptions = {})=>({
17
17
  if ('webpack' === api.context.bundlerType) return;
18
18
  const getMergedOptions = (useSSR, config)=>{
19
19
  const isProd = 'production' === config.mode;
20
- return (0, __WEBPACK_EXTERNAL_MODULE_reduce_configs_02786df6__.reduceConfigs)({
20
+ return reduceConfigs({
21
21
  initial: getDefaultStyledComponentsConfig(isProd, useSSR),
22
22
  config: pluginOptions
23
23
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rsbuild/plugin-styled-components",
3
- "version": "1.4.0",
3
+ "version": "1.5.0",
4
4
  "repository": "https://github.com/rspack-contrib/rsbuild-plugin-styled-components",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -33,33 +33,32 @@
33
33
  ]
34
34
  },
35
35
  "dependencies": {
36
- "@swc/plugin-styled-components": "^8.0.1",
37
- "reduce-configs": "^1.1.0"
36
+ "@swc/plugin-styled-components": "^10.0.0",
37
+ "reduce-configs": "^1.1.1"
38
38
  },
39
39
  "devDependencies": {
40
40
  "@biomejs/biome": "^1.9.4",
41
- "@playwright/test": "^1.52.0",
42
- "@rsbuild/core": "^1.4.0-beta.4",
43
- "@rslib/core": "^0.9.1",
44
- "@types/node": "^22.15.29",
41
+ "@playwright/test": "^1.55.1",
42
+ "@rsbuild/core": "^1.6.0",
43
+ "@rslib/core": "^0.15.0",
44
+ "@types/node": "^22.18.8",
45
45
  "nano-staged": "^0.8.0",
46
- "playwright": "^1.52.0",
47
- "simple-git-hooks": "^2.13.0",
48
- "styled-components": "^6.1.18",
49
- "typescript": "^5.8.3"
46
+ "playwright": "^1.55.1",
47
+ "simple-git-hooks": "^2.13.1",
48
+ "styled-components": "^6.1.19",
49
+ "typescript": "^5.9.3"
50
50
  },
51
51
  "peerDependencies": {
52
- "@rsbuild/core": "^1.4.0-beta.4 || ^1.4.0"
52
+ "@rsbuild/core": "^1.6.0 || ^1.4.0"
53
53
  },
54
54
  "peerDependenciesMeta": {
55
55
  "@rsbuild/core": {
56
56
  "optional": true
57
57
  }
58
58
  },
59
- "packageManager": "pnpm@10.11.0",
59
+ "packageManager": "pnpm@10.17.1",
60
60
  "publishConfig": {
61
61
  "access": "public",
62
- "registry": "https://registry.npmjs.org/",
63
- "provenance": true
62
+ "registry": "https://registry.npmjs.org/"
64
63
  }
65
64
  }