mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-08 02:01:48 +08:00
Fix webpack DefinePlugin import to use default export
This commit is contained in:
parent
980282f955
commit
902dc18344
@ -71,5 +71,5 @@ const setupRuntimeConfig = async (
|
||||
|
||||
// Load DefinePlugin with a dynamic import to ensure that Next.js can first
|
||||
// replace webpack with its own internal instance, and we get that here.
|
||||
baseConfig.plugins?.push(new (await import('webpack')).DefinePlugin(definePluginConfig));
|
||||
baseConfig.plugins?.push(new (await import('webpack')).default.DefinePlugin(definePluginConfig));
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user