@rsbuild/plugin-styled-components 0.1.9 → 0.2.1

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.js CHANGED
@@ -32,7 +32,7 @@ var pluginStyledComponents = (userConfig = {}) => ({
32
32
  if (bundlerType === "webpack") {
33
33
  return;
34
34
  }
35
- const isSSR = (0, import_shared.isServerTarget)(api.context.target);
35
+ const isSSR = (0, import_shared.isServerTarget)(api.context.targets);
36
36
  const styledComponentsOptions = (0, import_shared.mergeChainedOptions)({
37
37
  defaults: (0, import_shared.getDefaultStyledComponentsConfig)(isProd, isSSR),
38
38
  options: userConfig
package/dist/index.mjs CHANGED
@@ -20,7 +20,7 @@ var pluginStyledComponents = (userConfig = {}) => ({
20
20
  if (bundlerType === "webpack") {
21
21
  return;
22
22
  }
23
- const isSSR = isServerTarget(api.context.target);
23
+ const isSSR = isServerTarget(api.context.targets);
24
24
  const styledComponentsOptions = mergeChainedOptions({
25
25
  defaults: getDefaultStyledComponentsConfig(isProd, isSSR),
26
26
  options: userConfig
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rsbuild/plugin-styled-components",
3
- "version": "0.1.9",
3
+ "version": "0.2.1",
4
4
  "description": "styled-components plugin for Rsbuild",
5
5
  "repository": {
6
6
  "type": "git",
@@ -22,13 +22,13 @@
22
22
  "dist"
23
23
  ],
24
24
  "dependencies": {
25
- "@rsbuild/shared": "0.1.9"
25
+ "@rsbuild/shared": "0.2.1"
26
26
  },
27
27
  "devDependencies": {
28
- "@types/node": "^16",
28
+ "@types/node": "16.x",
29
29
  "typescript": "^5.3.0",
30
- "@rsbuild/core": "0.1.9",
31
- "@rsbuild/test-helper": "0.1.9"
30
+ "@rsbuild/core": "0.2.1",
31
+ "@rsbuild/test-helper": "0.2.1"
32
32
  },
33
33
  "publishConfig": {
34
34
  "access": "public",