@rsbuild/plugin-styled-components 0.1.8 → 0.2.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/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +6 -5
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.
|
|
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.
|
|
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.
|
|
3
|
+
"version": "0.2.0",
|
|
4
4
|
"description": "styled-components plugin for Rsbuild",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
"directory": "packages/plugin-styled-components"
|
|
9
9
|
},
|
|
10
10
|
"license": "MIT",
|
|
11
|
+
"type": "commonjs",
|
|
11
12
|
"exports": {
|
|
12
13
|
".": {
|
|
13
14
|
"types": "./dist/index.d.ts",
|
|
@@ -21,13 +22,13 @@
|
|
|
21
22
|
"dist"
|
|
22
23
|
],
|
|
23
24
|
"dependencies": {
|
|
24
|
-
"@rsbuild/shared": "0.
|
|
25
|
+
"@rsbuild/shared": "0.2.0"
|
|
25
26
|
},
|
|
26
27
|
"devDependencies": {
|
|
27
|
-
"@types/node": "
|
|
28
|
+
"@types/node": "16.x",
|
|
28
29
|
"typescript": "^5.3.0",
|
|
29
|
-
"@rsbuild/
|
|
30
|
-
"@rsbuild/
|
|
30
|
+
"@rsbuild/core": "0.2.0",
|
|
31
|
+
"@rsbuild/test-helper": "0.2.0"
|
|
31
32
|
},
|
|
32
33
|
"publishConfig": {
|
|
33
34
|
"access": "public",
|