@rsbuild/plugin-styled-components 1.3.0 → 1.4.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.cjs +2 -2
- package/dist/index.js +2 -2
- package/package.json +12 -12
package/dist/index.cjs
CHANGED
|
@@ -59,9 +59,9 @@ const pluginStyledComponents = (pluginOptions = {})=>({
|
|
|
59
59
|
const rsbuildConfig = api.getRsbuildConfig();
|
|
60
60
|
const targets = rsbuildConfig.environments ? Object.values(rsbuildConfig.environments).map((e)=>{
|
|
61
61
|
var _e_output, _userConfig_output;
|
|
62
|
-
return (null
|
|
62
|
+
return (null == (_e_output = e.output) ? void 0 : _e_output.target) || (null == (_userConfig_output = userConfig.output) ? void 0 : _userConfig_output.target) || 'web';
|
|
63
63
|
}) : [
|
|
64
|
-
(null
|
|
64
|
+
(null == (_userConfig_output = userConfig.output) ? void 0 : _userConfig_output.target) || 'web'
|
|
65
65
|
];
|
|
66
66
|
const useSSR = isServerTarget(targets);
|
|
67
67
|
const mergedOptions = getMergedOptions(useSSR, userConfig);
|
package/dist/index.js
CHANGED
|
@@ -27,9 +27,9 @@ const pluginStyledComponents = (pluginOptions = {})=>({
|
|
|
27
27
|
const rsbuildConfig = api.getRsbuildConfig();
|
|
28
28
|
const targets = rsbuildConfig.environments ? Object.values(rsbuildConfig.environments).map((e)=>{
|
|
29
29
|
var _e_output, _userConfig_output;
|
|
30
|
-
return (null
|
|
30
|
+
return (null == (_e_output = e.output) ? void 0 : _e_output.target) || (null == (_userConfig_output = userConfig.output) ? void 0 : _userConfig_output.target) || 'web';
|
|
31
31
|
}) : [
|
|
32
|
-
(null
|
|
32
|
+
(null == (_userConfig_output = userConfig.output) ? void 0 : _userConfig_output.target) || 'web'
|
|
33
33
|
];
|
|
34
34
|
const useSSR = isServerTarget(targets);
|
|
35
35
|
const mergedOptions = getMergedOptions(useSSR, userConfig);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rsbuild/plugin-styled-components",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.4.0",
|
|
4
4
|
"repository": "https://github.com/rspack-contrib/rsbuild-plugin-styled-components",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -33,30 +33,30 @@
|
|
|
33
33
|
]
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@swc/plugin-styled-components": "^
|
|
36
|
+
"@swc/plugin-styled-components": "^8.0.1",
|
|
37
37
|
"reduce-configs": "^1.1.0"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
40
|
"@biomejs/biome": "^1.9.4",
|
|
41
|
-
"@playwright/test": "^1.
|
|
42
|
-
"@rsbuild/core": "^1.
|
|
43
|
-
"@rslib/core": "^0.
|
|
44
|
-
"@types/node": "^22.
|
|
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",
|
|
45
45
|
"nano-staged": "^0.8.0",
|
|
46
|
-
"playwright": "^1.
|
|
47
|
-
"simple-git-hooks": "^2.
|
|
48
|
-
"styled-components": "^6.1.
|
|
49
|
-
"typescript": "^5.8.
|
|
46
|
+
"playwright": "^1.52.0",
|
|
47
|
+
"simple-git-hooks": "^2.13.0",
|
|
48
|
+
"styled-components": "^6.1.18",
|
|
49
|
+
"typescript": "^5.8.3"
|
|
50
50
|
},
|
|
51
51
|
"peerDependencies": {
|
|
52
|
-
"@rsbuild/core": "^1.
|
|
52
|
+
"@rsbuild/core": "^1.4.0-beta.4 || ^1.4.0"
|
|
53
53
|
},
|
|
54
54
|
"peerDependenciesMeta": {
|
|
55
55
|
"@rsbuild/core": {
|
|
56
56
|
"optional": true
|
|
57
57
|
}
|
|
58
58
|
},
|
|
59
|
-
"packageManager": "pnpm@10.
|
|
59
|
+
"packageManager": "pnpm@10.11.0",
|
|
60
60
|
"publishConfig": {
|
|
61
61
|
"access": "public",
|
|
62
62
|
"registry": "https://registry.npmjs.org/",
|