mirror of
https://github.com/storybookjs/storybook.git
synced 2025-03-16 05:03:11 +08:00
Merge pull request #21402 from storybookjs/21316-drop-require-from-docs
Docs: Use async import rather than require in docs
This commit is contained in:
commit
a5c949a7ee
@ -96,8 +96,10 @@ async function webpack(
|
||||
...webpackConfig,
|
||||
plugins: [
|
||||
...(webpackConfig.plugins || []),
|
||||
// eslint-disable-next-line global-require
|
||||
...(csfPluginOptions ? [require('@storybook/csf-plugin').webpack(csfPluginOptions)] : []),
|
||||
|
||||
...(csfPluginOptions
|
||||
? [(await import('@storybook/csf-plugin')).webpack(csfPluginOptions)]
|
||||
: []),
|
||||
],
|
||||
|
||||
module: {
|
||||
|
Loading…
x
Reference in New Issue
Block a user