@rsbuild/plugin-styled-components 1.2.2-beta.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 CHANGED
@@ -4,7 +4,7 @@ const __rslib_import_meta_url__ = /*#__PURE__*/ function() {
4
4
  }();
5
5
  var __webpack_require__ = {};
6
6
  (()=>{
7
- __webpack_require__.d = function(exports1, definition) {
7
+ __webpack_require__.d = (exports1, definition)=>{
8
8
  for(var key in definition)if (__webpack_require__.o(definition, key) && !__webpack_require__.o(exports1, key)) Object.defineProperty(exports1, key, {
9
9
  enumerable: true,
10
10
  get: definition[key]
@@ -12,12 +12,10 @@ var __webpack_require__ = {};
12
12
  };
13
13
  })();
14
14
  (()=>{
15
- __webpack_require__.o = function(obj, prop) {
16
- return Object.prototype.hasOwnProperty.call(obj, prop);
17
- };
15
+ __webpack_require__.o = (obj, prop)=>Object.prototype.hasOwnProperty.call(obj, prop);
18
16
  })();
19
17
  (()=>{
20
- __webpack_require__.r = function(exports1) {
18
+ __webpack_require__.r = (exports1)=>{
21
19
  if ('undefined' != typeof Symbol && Symbol.toStringTag) Object.defineProperty(exports1, Symbol.toStringTag, {
22
20
  value: 'Module'
23
21
  });
@@ -29,8 +27,8 @@ var __webpack_require__ = {};
29
27
  var __webpack_exports__ = {};
30
28
  __webpack_require__.r(__webpack_exports__);
31
29
  __webpack_require__.d(__webpack_exports__, {
32
- PLUGIN_STYLED_COMPONENTS_NAME: ()=>PLUGIN_STYLED_COMPONENTS_NAME,
33
- pluginStyledComponents: ()=>pluginStyledComponents
30
+ pluginStyledComponents: ()=>pluginStyledComponents,
31
+ PLUGIN_STYLED_COMPONENTS_NAME: ()=>PLUGIN_STYLED_COMPONENTS_NAME
34
32
  });
35
33
  const external_node_module_namespaceObject = require("node:module");
36
34
  const external_reduce_configs_namespaceObject = require("reduce-configs");
@@ -61,9 +59,9 @@ const pluginStyledComponents = (pluginOptions = {})=>({
61
59
  const rsbuildConfig = api.getRsbuildConfig();
62
60
  const targets = rsbuildConfig.environments ? Object.values(rsbuildConfig.environments).map((e)=>{
63
61
  var _e_output, _userConfig_output;
64
- return (null === (_e_output = e.output) || void 0 === _e_output ? void 0 : _e_output.target) || (null === (_userConfig_output = userConfig.output) || void 0 === _userConfig_output ? void 0 : _userConfig_output.target) || 'web';
62
+ return (null == (_e_output = e.output) ? void 0 : _e_output.target) || (null == (_userConfig_output = userConfig.output) ? void 0 : _userConfig_output.target) || 'web';
65
63
  }) : [
66
- (null === (_userConfig_output = userConfig.output) || void 0 === _userConfig_output ? void 0 : _userConfig_output.target) || 'web'
64
+ (null == (_userConfig_output = userConfig.output) ? void 0 : _userConfig_output.target) || 'web'
67
65
  ];
68
66
  const useSSR = isServerTarget(targets);
69
67
  const mergedOptions = getMergedOptions(useSSR, userConfig);
@@ -88,8 +86,12 @@ const pluginStyledComponents = (pluginOptions = {})=>({
88
86
  });
89
87
  }
90
88
  });
91
- var __webpack_export_target__ = exports;
92
- for(var __webpack_i__ in __webpack_exports__)__webpack_export_target__[__webpack_i__] = __webpack_exports__[__webpack_i__];
93
- if (__webpack_exports__.__esModule) Object.defineProperty(__webpack_export_target__, '__esModule', {
89
+ exports.PLUGIN_STYLED_COMPONENTS_NAME = __webpack_exports__.PLUGIN_STYLED_COMPONENTS_NAME;
90
+ exports.pluginStyledComponents = __webpack_exports__.pluginStyledComponents;
91
+ for(var __webpack_i__ in __webpack_exports__)if (-1 === [
92
+ "PLUGIN_STYLED_COMPONENTS_NAME",
93
+ "pluginStyledComponents"
94
+ ].indexOf(__webpack_i__)) exports[__webpack_i__] = __webpack_exports__[__webpack_i__];
95
+ Object.defineProperty(exports, '__esModule', {
94
96
  value: true
95
97
  });
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 === (_e_output = e.output) || void 0 === _e_output ? void 0 : _e_output.target) || (null === (_userConfig_output = userConfig.output) || void 0 === _userConfig_output ? void 0 : _userConfig_output.target) || 'web';
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 === (_userConfig_output = userConfig.output) || void 0 === _userConfig_output ? void 0 : _userConfig_output.target) || 'web'
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.2.2-beta.0",
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",
@@ -14,9 +14,16 @@
14
14
  "main": "./dist/index.js",
15
15
  "module": "./dist/index.mjs",
16
16
  "types": "./dist/index.d.ts",
17
- "files": [
18
- "dist"
19
- ],
17
+ "files": ["dist"],
18
+ "scripts": {
19
+ "build": "rslib build",
20
+ "dev": "rslib build --watch",
21
+ "lint": "biome check .",
22
+ "lint:write": "biome check . --write",
23
+ "prepare": "simple-git-hooks && npm run build",
24
+ "test": "playwright test",
25
+ "bump": "npx bumpp"
26
+ },
20
27
  "simple-git-hooks": {
21
28
  "pre-commit": "npx nano-staged"
22
29
  },
@@ -26,39 +33,33 @@
26
33
  ]
27
34
  },
28
35
  "dependencies": {
29
- "@swc/plugin-styled-components": "6.7.0",
36
+ "@swc/plugin-styled-components": "^8.0.1",
30
37
  "reduce-configs": "^1.1.0"
31
38
  },
32
39
  "devDependencies": {
33
40
  "@biomejs/biome": "^1.9.4",
34
- "@playwright/test": "^1.50.1",
35
- "@rsbuild/core": "^1.2.3",
36
- "@rslib/core": "^0.4.0",
37
- "@types/node": "^22.13.0",
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",
38
45
  "nano-staged": "^0.8.0",
39
- "playwright": "^1.50.1",
40
- "simple-git-hooks": "^2.11.1",
41
- "styled-components": "^6.1.14",
42
- "typescript": "^5.7.3"
46
+ "playwright": "^1.52.0",
47
+ "simple-git-hooks": "^2.13.0",
48
+ "styled-components": "^6.1.18",
49
+ "typescript": "^5.8.3"
43
50
  },
44
51
  "peerDependencies": {
45
- "@rsbuild/core": "^1.2.0"
52
+ "@rsbuild/core": "^1.4.0-beta.4 || ^1.4.0"
46
53
  },
47
54
  "peerDependenciesMeta": {
48
55
  "@rsbuild/core": {
49
56
  "optional": true
50
57
  }
51
58
  },
59
+ "packageManager": "pnpm@10.11.0",
52
60
  "publishConfig": {
53
61
  "access": "public",
54
- "registry": "https://registry.npmjs.org/"
55
- },
56
- "scripts": {
57
- "build": "rslib build",
58
- "dev": "rslib build --watch",
59
- "lint": "biome check .",
60
- "lint:write": "biome check . --write",
61
- "test": "playwright test",
62
- "bump": "npx bumpp"
62
+ "registry": "https://registry.npmjs.org/",
63
+ "provenance": true
63
64
  }
64
- }
65
+ }