mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 17:28:26 -04:00
Fix storybook config (#182283)
Storybook is attempting to load an esm after the merge of #182244. This updates the webpack configuration to only load files from the browser and main properties.
This commit is contained in:
parent
24e5b3a4bc
commit
869402b831
1 changed files with 3 additions and 0 deletions
|
@ -139,6 +139,9 @@ export default ({ config: storybookConfig }: { config: Configuration }) => {
|
|||
stats,
|
||||
};
|
||||
|
||||
// Override storybookConfig mainFields instead of merging with config
|
||||
delete storybookConfig.resolve?.mainFields;
|
||||
|
||||
const updatedModuleRules = [];
|
||||
// clone and modify the module.rules config provided by storybook so that the default babel plugins run after the typescript preset
|
||||
for (const originalRule of storybookConfig.module?.rules ?? []) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue