refactor(#10336): module semantics

This commit is contained in:
Acid Chicken (硫酸鶏)
2023-03-20 16:27:40 +09:00
parent be7b71a2f5
commit 3907cb51d6
5 changed files with 18 additions and 12 deletions

View File

@@ -74,15 +74,19 @@ function toStories(component: string): string {
/>,
]
: [],
<import-declaration
source={<literal value={`./${base}`} />}
specifiers={[
<import-default-specifier
local={identifier}
imported={identifier}
/>,
]}
/>,
...hasImplStories
? []
: [
<import-declaration
source={<literal value={`./${base}`} />}
specifiers={[
<import-default-specifier
local={identifier}
imported={identifier}
/>,
]}
/>,
],
<variable-declaration
kind="const"
declarations={[