@rsbuild/plugin-styled-components 0.0.15 → 0.0.17

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 CHANGED
@@ -1,4 +1,4 @@
1
- import { DefaultRsbuildPlugin, ChainedConfig } from '@rsbuild/shared';
1
+ import { type ChainedConfig, type DefaultRsbuildPlugin } from '@rsbuild/shared';
2
2
  /**
3
3
  * the options of [babel-plugin-styled-components](https://github.com/styled-components/babel-plugin-styled-components) or [rspackExperiments.styledComponents](https://www.rspack.dev/guide/loader.html#optionsrspackexperimentsstyledcomponents).
4
4
  */
package/dist/index.js CHANGED
@@ -35,10 +35,13 @@ var import_shared = require("@rsbuild/shared");
35
35
  const pluginStyledComponents = (userConfig = {}) => ({
36
36
  name: "plugin-styled-components",
37
37
  setup(api) {
38
- api.modifyBundlerChain(async (chain, { CHAIN_ID, isProd, target }) => {
38
+ api.modifyBundlerChain(async (chain, { CHAIN_ID, isProd }) => {
39
39
  const { bundlerType } = api.context;
40
40
  const isSSR = (0, import_shared.useSSR)(api.context.target);
41
- const styledComponentsOptions = (0, import_shared.mergeChainedOptions)((0, import_shared.getDefaultStyledComponentsConfig)(isProd, isSSR), userConfig);
41
+ const styledComponentsOptions = (0, import_shared.mergeChainedOptions)({
42
+ defaults: (0, import_shared.getDefaultStyledComponentsConfig)(isProd, isSSR),
43
+ options: userConfig
44
+ });
42
45
  if (!styledComponentsOptions) {
43
46
  return;
44
47
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rsbuild/plugin-styled-components",
3
- "version": "0.0.15",
3
+ "version": "0.0.17",
4
4
  "description": "styled-components plugin for Rsbuild",
5
5
  "repository": {
6
6
  "type": "git",
@@ -21,15 +21,15 @@
21
21
  ],
22
22
  "dependencies": {
23
23
  "babel-plugin-styled-components": "1.13.3",
24
- "@rsbuild/shared": "0.0.15"
24
+ "@rsbuild/shared": "0.0.17"
25
25
  },
26
26
  "devDependencies": {
27
27
  "@types/node": "^16",
28
28
  "typescript": "^5.2.2",
29
- "@rsbuild/core": "0.0.15",
30
- "@rsbuild/plugin-swc": "0.0.15",
31
- "@rsbuild/test-helper": "0.0.15",
32
- "@rsbuild/webpack": "0.0.15"
29
+ "@rsbuild/core": "0.0.17",
30
+ "@rsbuild/plugin-swc": "0.0.17",
31
+ "@rsbuild/test-helper": "0.0.17",
32
+ "@rsbuild/webpack": "0.0.17"
33
33
  },
34
34
  "publishConfig": {
35
35
  "access": "public",