@rsbuild/plugin-styled-components 0.0.28 → 1.0.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.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/index.mjs +2 -2
- package/package.json +7 -7
package/dist/index.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import { RsbuildPlugin } from '@rsbuild/core';
|
|
|
2
2
|
import { ChainedConfig } from '@rsbuild/shared';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
|
-
* the options of [babel-plugin-styled-components](https://github.com/styled-components/babel-plugin-styled-components) or [rspackExperiments.styledComponents](https://rspack.dev/guide/loader
|
|
5
|
+
* the options of [babel-plugin-styled-components](https://github.com/styled-components/babel-plugin-styled-components) or [rspackExperiments.styledComponents](https://rspack.dev/guide/loader#optionsrspackexperimentsstyledcomponents).
|
|
6
6
|
*/
|
|
7
7
|
type StyledComponentsOptions = {
|
|
8
8
|
displayName?: boolean;
|
package/dist/index.js
CHANGED
|
@@ -35,7 +35,7 @@ __export(src_exports, {
|
|
|
35
35
|
module.exports = __toCommonJS(src_exports);
|
|
36
36
|
var import_shared = require("@rsbuild/shared");
|
|
37
37
|
var pluginStyledComponents = (userConfig = {}) => ({
|
|
38
|
-
name: "
|
|
38
|
+
name: "rsbuild:styled-components",
|
|
39
39
|
setup(api) {
|
|
40
40
|
api.modifyBundlerChain(async (chain, { CHAIN_ID, isProd }) => {
|
|
41
41
|
const { bundlerType } = api.context;
|
package/dist/index.mjs
CHANGED
|
@@ -6,7 +6,7 @@ var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require
|
|
|
6
6
|
throw Error('Dynamic require of "' + x + '" is not supported');
|
|
7
7
|
});
|
|
8
8
|
|
|
9
|
-
// ../../node_modules/.pnpm/@modern-js+module-tools@2.40.0_typescript@5.
|
|
9
|
+
// ../../node_modules/.pnpm/@modern-js+module-tools@2.40.0_typescript@5.3.2/node_modules/@modern-js/module-tools/shims/esm.js
|
|
10
10
|
import { fileURLToPath } from "url";
|
|
11
11
|
import path from "path";
|
|
12
12
|
|
|
@@ -21,7 +21,7 @@ import {
|
|
|
21
21
|
getDefaultStyledComponentsConfig
|
|
22
22
|
} from "@rsbuild/shared";
|
|
23
23
|
var pluginStyledComponents = (userConfig = {}) => ({
|
|
24
|
-
name: "
|
|
24
|
+
name: "rsbuild:styled-components",
|
|
25
25
|
setup(api) {
|
|
26
26
|
api.modifyBundlerChain(async (chain, { CHAIN_ID, isProd }) => {
|
|
27
27
|
const { bundlerType } = api.context;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rsbuild/plugin-styled-components",
|
|
3
|
-
"version": "0.0
|
|
3
|
+
"version": "1.0.0",
|
|
4
4
|
"description": "styled-components plugin for Rsbuild",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -22,15 +22,15 @@
|
|
|
22
22
|
],
|
|
23
23
|
"dependencies": {
|
|
24
24
|
"babel-plugin-styled-components": "1.13.3",
|
|
25
|
-
"@rsbuild/shared": "0.0
|
|
25
|
+
"@rsbuild/shared": "1.0.0"
|
|
26
26
|
},
|
|
27
27
|
"devDependencies": {
|
|
28
28
|
"@types/node": "^16",
|
|
29
|
-
"typescript": "^5.
|
|
30
|
-
"@rsbuild/test-helper": "0.0
|
|
31
|
-
"@rsbuild/
|
|
32
|
-
"@rsbuild/plugin-swc": "0.0
|
|
33
|
-
"@rsbuild/
|
|
29
|
+
"typescript": "^5.3.0",
|
|
30
|
+
"@rsbuild/test-helper": "1.0.0",
|
|
31
|
+
"@rsbuild/core": "1.0.0",
|
|
32
|
+
"@rsbuild/plugin-swc": "1.0.0",
|
|
33
|
+
"@rsbuild/webpack": "1.0.0"
|
|
34
34
|
},
|
|
35
35
|
"publishConfig": {
|
|
36
36
|
"access": "public",
|