File tree Expand file tree Collapse file tree 3 files changed +9
-2
lines changed
packages/cli/plugin-styled-components Expand file tree Collapse file tree 3 files changed +9
-2
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ ' @modern-js/plugin-styled-components ' : patch
3+ ---
4+
5+ fix: plugin-styled-components
6+ fix: 修复 styled-components 插件
Original file line number Diff line number Diff line change 11{
22 "name" : " @modern-js/plugin-styled-components" ,
3- "private" : true ,
43 "description" : " A Modern.js plugin for styled-components." ,
54 "license" : " MIT" ,
65 "keywords" : [
Original file line number Diff line number Diff line change @@ -28,9 +28,11 @@ export const styledComponentsPlugin = (
2828 } ) ;
2929
3030 api . _internalRuntimePlugins ( async ( { entrypoint, plugins } ) => {
31+ const { metaName } = api . getAppContext ( ) ;
32+
3133 plugins . push ( {
3234 name : 'styledComponents' ,
33- path : '@modern-js /plugin-styled-components/runtime' ,
35+ path : `@ ${ metaName } /plugin-styled-components/runtime` ,
3436 config : { } ,
3537 } ) ;
3638 return { entrypoint, plugins } ;
You can’t perform that action at this time.
0 commit comments