diff --git a/packages/manager/.changeset/pr-11278-fixed-1731985440482.md b/packages/manager/.changeset/pr-11278-fixed-1731985440482.md new file mode 100644 index 00000000000..02c540ade70 --- /dev/null +++ b/packages/manager/.changeset/pr-11278-fixed-1731985440482.md @@ -0,0 +1,5 @@ +--- +"@linode/manager": Fixed +--- + +Storybook optimizeDeps config to improve cold start ([#11278](https://github.com/linode/manager/pull/11278)) diff --git a/packages/manager/.storybook/main.ts b/packages/manager/.storybook/main.ts index 273472e13fe..ea63a35c53e 100644 --- a/packages/manager/.storybook/main.ts +++ b/packages/manager/.storybook/main.ts @@ -54,6 +54,17 @@ const config: StorybookConfig = { define: { 'process.env': {}, }, + optimizeDeps: { + include: [ + '@storybook/react', + '@storybook/react-vite', + 'react', + 'react-dom', + ], + esbuildOptions: { + target: 'esnext', + }, + }, }); }, };