mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-07 07:21:17 +08:00
Replace all as
in import specifiers with colons
This commit is contained in:
parent
61acc22f7f
commit
69f23e4b56
@ -25,7 +25,7 @@ export async function externalsPlugin() {
|
||||
src
|
||||
.slice(startPosition, endPosition)
|
||||
.replace('import ', 'const ')
|
||||
.replace(' as ', ': ')
|
||||
.replaceAll(' as ', ': ')
|
||||
.replace(' from ', ' = ')
|
||||
.replace(packageAndDelimiters, globals[packageName])
|
||||
);
|
||||
|
Loading…
x
Reference in New Issue
Block a user