From b35427ab969ca8d7b59ed9f92f466c736b4d2958 Mon Sep 17 00:00:00 2001 From: Alban Bailly Date: Mon, 18 Nov 2024 21:49:35 -0500 Subject: [PATCH 1/2] Storybook optimizeDeps --- packages/manager/.storybook/main.ts | 11 +++++++++++ 1 file changed, 11 insertions(+) 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', + }, + }, }); }, }; From 56b630147a1cf2a04bbb9b797ed97a399535cff5 Mon Sep 17 00:00:00 2001 From: Alban Bailly Date: Mon, 18 Nov 2024 22:04:00 -0500 Subject: [PATCH 2/2] Added changeset: Storybook optimizeDeps config to improve cold start --- packages/manager/.changeset/pr-11278-fixed-1731985440482.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 packages/manager/.changeset/pr-11278-fixed-1731985440482.md 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))