@rsbuild/plugin-styled-components 1.0.0-alpha.0 → 1.0.0-alpha.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.cjs CHANGED
@@ -34,7 +34,7 @@ __export(src_exports, {
34
34
  pluginStyledComponents: () => pluginStyledComponents
35
35
  });
36
36
  module.exports = __toCommonJS(src_exports);
37
- var import_core = require("@rsbuild/core");
37
+ var import_reduce_configs = require("reduce-configs");
38
38
  function isServerTarget(target) {
39
39
  return Array.isArray(target) ? target.includes("node") : target === "node";
40
40
  }
@@ -57,7 +57,7 @@ var pluginStyledComponents = (pluginOptions = {}) => ({
57
57
  }
58
58
  const getMergedOptions = (useSSR) => {
59
59
  const isProd = process.env.NODE_ENV === "production";
60
- return (0, import_core.reduceConfigs)({
60
+ return (0, import_reduce_configs.reduceConfigs)({
61
61
  initial: getDefaultStyledComponentsConfig(isProd, useSSR),
62
62
  config: pluginOptions
63
63
  });
package/dist/index.d.ts CHANGED
@@ -1,4 +1,5 @@
1
- import type { ConfigChain, RsbuildPlugin } from '@rsbuild/core';
1
+ import type { RsbuildPlugin } from '@rsbuild/core';
2
+ import { type ConfigChain } from 'reduce-configs';
2
3
  /**
3
4
  * The options of [@swc/plugin-styled-components](https://www.npmjs.com/package/@swc/plugin-styled-components).
4
5
  */
package/dist/index.js CHANGED
@@ -14,7 +14,7 @@ import { fileURLToPath } from "url";
14
14
  import path from "path";
15
15
 
16
16
  // src/index.ts
17
- import { reduceConfigs } from "@rsbuild/core";
17
+ import { reduceConfigs } from "reduce-configs";
18
18
  function isServerTarget(target) {
19
19
  return Array.isArray(target) ? target.includes("node") : target === "node";
20
20
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rsbuild/plugin-styled-components",
3
- "version": "1.0.0-alpha.0",
3
+ "version": "1.0.0-alpha.2",
4
4
  "description": "styled-components plugin for Rsbuild",
5
5
  "repository": {
6
6
  "type": "git",
@@ -23,15 +23,16 @@
23
23
  ],
24
24
  "dependencies": {
25
25
  "@swc/plugin-styled-components": "2.0.8",
26
- "@rsbuild/shared": "1.0.0-alpha.0"
26
+ "reduce-configs": "^1.0.0",
27
+ "@rsbuild/shared": "1.0.0-alpha.2"
27
28
  },
28
29
  "devDependencies": {
29
30
  "@types/node": "18.x",
30
31
  "typescript": "^5.5.2",
31
- "@rsbuild/core": "1.0.0-alpha.0"
32
+ "@rsbuild/core": "1.0.0-alpha.2"
32
33
  },
33
34
  "peerDependencies": {
34
- "@rsbuild/core": "^1.0.0-alpha.0"
35
+ "@rsbuild/core": "^1.0.0-alpha.2"
35
36
  },
36
37
  "publishConfig": {
37
38
  "access": "public",