mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-09 00:19:13 +08:00
Update externalGlobalsPlugin function signature to return a Promise<Plugin>
This commit is contained in:
parent
9c64c48c41
commit
9d71abdae9
@ -38,7 +38,7 @@ const replacementMap = new Map([
|
|||||||
* https://github.com/eight04/rollup-plugin-external-globals, but simplified to meet our simple
|
* https://github.com/eight04/rollup-plugin-external-globals, but simplified to meet our simple
|
||||||
* needs.
|
* needs.
|
||||||
*/
|
*/
|
||||||
export async function externalGlobalsPlugin(externals: Record<string, string>) {
|
export async function externalGlobalsPlugin(externals: Record<string, string>): Promise<Plugin> {
|
||||||
await init;
|
await init;
|
||||||
const { mergeAlias } = await import('vite');
|
const { mergeAlias } = await import('vite');
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user