@rsbuild/plugin-styled-components 0.7.6 → 0.7.8
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 +4 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +4 -2
- package/package.json +4 -4
package/dist/index.cjs
CHANGED
|
@@ -20,6 +20,7 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
20
20
|
// src/index.ts
|
|
21
21
|
var src_exports = {};
|
|
22
22
|
__export(src_exports, {
|
|
23
|
+
PLUGIN_STYLED_COMPONENTS_NAME: () => PLUGIN_STYLED_COMPONENTS_NAME,
|
|
23
24
|
pluginStyledComponents: () => pluginStyledComponents
|
|
24
25
|
});
|
|
25
26
|
module.exports = __toCommonJS(src_exports);
|
|
@@ -34,8 +35,9 @@ var getDefaultStyledComponentsConfig = (isProd, ssr) => {
|
|
|
34
35
|
transpileTemplateLiterals: true
|
|
35
36
|
};
|
|
36
37
|
};
|
|
38
|
+
var PLUGIN_STYLED_COMPONENTS_NAME = "rsbuild:styled-components";
|
|
37
39
|
var pluginStyledComponents = (pluginOptions = {}) => ({
|
|
38
|
-
name:
|
|
40
|
+
name: PLUGIN_STYLED_COMPONENTS_NAME,
|
|
39
41
|
setup(api) {
|
|
40
42
|
if (api.context.bundlerType === "webpack") {
|
|
41
43
|
return;
|
|
@@ -68,5 +70,6 @@ var pluginStyledComponents = (pluginOptions = {}) => ({
|
|
|
68
70
|
});
|
|
69
71
|
// Annotate the CommonJS export names for ESM import in node:
|
|
70
72
|
0 && (module.exports = {
|
|
73
|
+
PLUGIN_STYLED_COMPONENTS_NAME,
|
|
71
74
|
pluginStyledComponents
|
|
72
75
|
});
|
package/dist/index.d.ts
CHANGED
|
@@ -15,6 +15,7 @@ type PluginStyledComponentsOptions = {
|
|
|
15
15
|
pure?: boolean;
|
|
16
16
|
cssProps?: boolean;
|
|
17
17
|
};
|
|
18
|
+
declare const PLUGIN_STYLED_COMPONENTS_NAME = "rsbuild:styled-components";
|
|
18
19
|
declare const pluginStyledComponents: (pluginOptions?: ConfigChain<PluginStyledComponentsOptions>) => RsbuildPlugin;
|
|
19
20
|
|
|
20
|
-
export { type PluginStyledComponentsOptions, pluginStyledComponents };
|
|
21
|
+
export { PLUGIN_STYLED_COMPONENTS_NAME, type PluginStyledComponentsOptions, pluginStyledComponents };
|
package/dist/index.js
CHANGED
|
@@ -2,7 +2,7 @@ import { createRequire } from 'module';
|
|
|
2
2
|
var require = createRequire(import.meta['url']);
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
// ../../node_modules/.pnpm/@modern-js+module-tools@2.52.0_eslint@9.
|
|
5
|
+
// ../../node_modules/.pnpm/@modern-js+module-tools@2.52.0_eslint@9.5.0_typescript@5.4.5/node_modules/@modern-js/module-tools/shims/esm.js
|
|
6
6
|
import { fileURLToPath } from "url";
|
|
7
7
|
import path from "path";
|
|
8
8
|
|
|
@@ -18,8 +18,9 @@ var getDefaultStyledComponentsConfig = (isProd, ssr) => {
|
|
|
18
18
|
transpileTemplateLiterals: true
|
|
19
19
|
};
|
|
20
20
|
};
|
|
21
|
+
var PLUGIN_STYLED_COMPONENTS_NAME = "rsbuild:styled-components";
|
|
21
22
|
var pluginStyledComponents = (pluginOptions = {}) => ({
|
|
22
|
-
name:
|
|
23
|
+
name: PLUGIN_STYLED_COMPONENTS_NAME,
|
|
23
24
|
setup(api) {
|
|
24
25
|
if (api.context.bundlerType === "webpack") {
|
|
25
26
|
return;
|
|
@@ -51,5 +52,6 @@ var pluginStyledComponents = (pluginOptions = {}) => ({
|
|
|
51
52
|
}
|
|
52
53
|
});
|
|
53
54
|
export {
|
|
55
|
+
PLUGIN_STYLED_COMPONENTS_NAME,
|
|
54
56
|
pluginStyledComponents
|
|
55
57
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rsbuild/plugin-styled-components",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.8",
|
|
4
4
|
"description": "styled-components plugin for Rsbuild",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -22,15 +22,15 @@
|
|
|
22
22
|
"dist"
|
|
23
23
|
],
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@rsbuild/shared": "0.7.
|
|
25
|
+
"@rsbuild/shared": "0.7.8"
|
|
26
26
|
},
|
|
27
27
|
"devDependencies": {
|
|
28
28
|
"@types/node": "18.x",
|
|
29
29
|
"typescript": "^5.4.2",
|
|
30
|
-
"@rsbuild/core": "0.7.
|
|
30
|
+
"@rsbuild/core": "0.7.8"
|
|
31
31
|
},
|
|
32
32
|
"peerDependencies": {
|
|
33
|
-
"@rsbuild/core": "^0.7.
|
|
33
|
+
"@rsbuild/core": "^0.7.8"
|
|
34
34
|
},
|
|
35
35
|
"publishConfig": {
|
|
36
36
|
"access": "public",
|