@rsbuild/plugin-styled-components 1.1.0 → 1.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/README.md +4 -0
- package/dist/index.cjs +5 -4
- package/package.json +11 -11
package/README.md
CHANGED
|
@@ -16,7 +16,11 @@ An Rsbuild plugin to provide compile-time support for styled-components. It impr
|
|
|
16
16
|
Install:
|
|
17
17
|
|
|
18
18
|
```bash
|
|
19
|
+
# `@rsbuild/core` >= 1.2.0
|
|
19
20
|
npm add @rsbuild/plugin-styled-components -D
|
|
21
|
+
|
|
22
|
+
# `@rsbuild/core` < 1.2.0
|
|
23
|
+
npm add @rsbuild/plugin-styled-components@1.1.0 -D
|
|
20
24
|
```
|
|
21
25
|
|
|
22
26
|
Add plugin to your `rsbuild.config.ts`:
|
package/dist/index.cjs
CHANGED
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
const __rslib_import_meta_url__ = /*#__PURE__*/ function() {
|
|
3
|
+
return 'undefined' == typeof document ? new (require('url'.replace('', ''))).URL('file:' + __filename).href : document.currentScript && document.currentScript.src || new URL('main.js', document.baseURI).href;
|
|
4
|
+
}();
|
|
2
5
|
// The require scope
|
|
3
6
|
var __webpack_require__ = {};
|
|
4
7
|
/************************************************************************/ // webpack/runtime/define_property_getters
|
|
@@ -38,9 +41,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
38
41
|
});
|
|
39
42
|
const external_node_module_namespaceObject = require("node:module");
|
|
40
43
|
const external_reduce_configs_namespaceObject = require("reduce-configs");
|
|
41
|
-
const src_require = (0, external_node_module_namespaceObject.createRequire)(
|
|
42
|
-
return 'undefined' == typeof document ? new (module.require('url'.replace('', ''))).URL('file:' + __filename).href : document.currentScript && document.currentScript.src || new URL('main.js', document.baseURI).href;
|
|
43
|
-
}());
|
|
44
|
+
const src_require = (0, external_node_module_namespaceObject.createRequire)(__rslib_import_meta_url__);
|
|
44
45
|
function isServerTarget(target) {
|
|
45
46
|
return Array.isArray(target) ? target.includes('node') : 'node' === target;
|
|
46
47
|
}
|
|
@@ -97,7 +98,7 @@ const pluginStyledComponents = (pluginOptions = {})=>({
|
|
|
97
98
|
}
|
|
98
99
|
});
|
|
99
100
|
var __webpack_export_target__ = exports;
|
|
100
|
-
for(var
|
|
101
|
+
for(var __webpack_i__ in __webpack_exports__)__webpack_export_target__[__webpack_i__] = __webpack_exports__[__webpack_i__];
|
|
101
102
|
if (__webpack_exports__.__esModule) Object.defineProperty(__webpack_export_target__, '__esModule', {
|
|
102
103
|
value: true
|
|
103
104
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rsbuild/plugin-styled-components",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.2.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": "
|
|
37
|
-
"reduce-configs": "^1.
|
|
36
|
+
"@swc/plugin-styled-components": "^6.0.2",
|
|
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": "^
|
|
41
|
+
"@playwright/test": "^1.49.0",
|
|
42
|
+
"@rsbuild/core": "^1.2.0-alpha.0",
|
|
43
|
+
"@rslib/core": "^0.1.1",
|
|
44
|
+
"@types/node": "^22.10.1",
|
|
45
45
|
"nano-staged": "^0.8.0",
|
|
46
|
-
"playwright": "^1.
|
|
46
|
+
"playwright": "^1.49.0",
|
|
47
47
|
"simple-git-hooks": "^2.11.1",
|
|
48
48
|
"styled-components": "^6.1.13",
|
|
49
|
-
"typescript": "^5.
|
|
49
|
+
"typescript": "^5.7.2"
|
|
50
50
|
},
|
|
51
51
|
"peerDependencies": {
|
|
52
|
-
"@rsbuild/core": "1.
|
|
52
|
+
"@rsbuild/core": "^1.2.0"
|
|
53
53
|
},
|
|
54
54
|
"peerDependenciesMeta": {
|
|
55
55
|
"@rsbuild/core": {
|
|
56
56
|
"optional": true
|
|
57
57
|
}
|
|
58
58
|
},
|
|
59
|
-
"packageManager": "pnpm@9.
|
|
59
|
+
"packageManager": "pnpm@9.14.4",
|
|
60
60
|
"publishConfig": {
|
|
61
61
|
"access": "public",
|
|
62
62
|
"registry": "https://registry.npmjs.org/",
|