@modern-js/plugin-styled-components 0.0.0-canary-20251127032505 → 0.0.0-canary-20251128085938
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/CHANGELOG.md +3 -1
- package/dist/cjs/index.js +2 -1
- package/dist/esm/index.mjs +2 -1
- package/dist/esm-node/index.mjs +2 -1
- package/package.json +4 -4
- package/src/index.ts +3 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
# @modern-js/plugin-styled-components
|
|
2
2
|
|
|
3
|
-
## 0.0.0-canary-
|
|
3
|
+
## 0.0.0-canary-20251128085938
|
|
4
4
|
|
|
5
5
|
### Patch Changes
|
|
6
6
|
|
|
7
7
|
- 3414a3e: feat: add plugin-styled-components
|
|
8
8
|
feat: 新增 styled-components 插件
|
|
9
|
+
- c9ea637: fix: plugin-styled-components
|
|
10
|
+
fix: 修复 styled-components 插件
|
|
9
11
|
- 9de9720: feat: add styled-components plugin options and fix docs
|
|
10
12
|
feat: styled-components 插件增加配置参数并修复相关文档
|
package/dist/cjs/index.js
CHANGED
|
@@ -47,9 +47,10 @@ const styledComponentsPlugin = (options)=>({
|
|
|
47
47
|
}
|
|
48
48
|
}));
|
|
49
49
|
api._internalRuntimePlugins(async ({ entrypoint, plugins })=>{
|
|
50
|
+
const { metaName } = api.getAppContext();
|
|
50
51
|
plugins.push({
|
|
51
52
|
name: 'styledComponents',
|
|
52
|
-
path:
|
|
53
|
+
path: `@${metaName}/plugin-styled-components/runtime`,
|
|
53
54
|
config: {}
|
|
54
55
|
});
|
|
55
56
|
return {
|
package/dist/esm/index.mjs
CHANGED
|
@@ -18,9 +18,10 @@ const styledComponentsPlugin = (options)=>({
|
|
|
18
18
|
}
|
|
19
19
|
}));
|
|
20
20
|
api._internalRuntimePlugins(async ({ entrypoint, plugins })=>{
|
|
21
|
+
const { metaName } = api.getAppContext();
|
|
21
22
|
plugins.push({
|
|
22
23
|
name: 'styledComponents',
|
|
23
|
-
path:
|
|
24
|
+
path: `@${metaName}/plugin-styled-components/runtime`,
|
|
24
25
|
config: {}
|
|
25
26
|
});
|
|
26
27
|
return {
|
package/dist/esm-node/index.mjs
CHANGED
|
@@ -18,9 +18,10 @@ const styledComponentsPlugin = (options)=>({
|
|
|
18
18
|
}
|
|
19
19
|
}));
|
|
20
20
|
api._internalRuntimePlugins(async ({ entrypoint, plugins })=>{
|
|
21
|
+
const { metaName } = api.getAppContext();
|
|
21
22
|
plugins.push({
|
|
22
23
|
name: 'styledComponents',
|
|
23
|
-
path:
|
|
24
|
+
path: `@${metaName}/plugin-styled-components/runtime`,
|
|
24
25
|
config: {}
|
|
25
26
|
});
|
|
26
27
|
return {
|
package/package.json
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"modern",
|
|
9
9
|
"modern.js"
|
|
10
10
|
],
|
|
11
|
-
"version": "0.0.0-canary-
|
|
11
|
+
"version": "0.0.0-canary-20251128085938",
|
|
12
12
|
"jsnext:source": "./src/index.ts",
|
|
13
13
|
"types": "./src/index.ts",
|
|
14
14
|
"main": "./dist/cjs/index.js",
|
|
@@ -24,9 +24,9 @@
|
|
|
24
24
|
"@types/jest": "^29.5.14",
|
|
25
25
|
"@types/node": "^20",
|
|
26
26
|
"typescript": "^5.3.3",
|
|
27
|
-
"@modern-js/app-tools": "0.0.0-canary-
|
|
28
|
-
"@modern-js/
|
|
29
|
-
"@modern-js/
|
|
27
|
+
"@modern-js/app-tools": "0.0.0-canary-20251128085938",
|
|
28
|
+
"@modern-js/runtime": "0.0.0-canary-20251128085938",
|
|
29
|
+
"@modern-js/rslib": "0.0.0-canary-20251128085938"
|
|
30
30
|
},
|
|
31
31
|
"peerDependencies": {
|
|
32
32
|
"styled-components": "^5.3.1"
|
package/src/index.ts
CHANGED
|
@@ -28,9 +28,11 @@ export const styledComponentsPlugin = (
|
|
|
28
28
|
});
|
|
29
29
|
|
|
30
30
|
api._internalRuntimePlugins(async ({ entrypoint, plugins }) => {
|
|
31
|
+
const { metaName } = api.getAppContext();
|
|
32
|
+
|
|
31
33
|
plugins.push({
|
|
32
34
|
name: 'styledComponents',
|
|
33
|
-
path:
|
|
35
|
+
path: `@${metaName}/plugin-styled-components/runtime`,
|
|
34
36
|
config: {},
|
|
35
37
|
});
|
|
36
38
|
return { entrypoint, plugins };
|