Skip to content

Commit

Permalink
Merge pull request #26145 from storybookjs/norbert/fix-addon-bundling
Browse files Browse the repository at this point in the history
Core: Fix addon bundling script
(cherry picked from commit 21a2300)
  • Loading branch information
ndelangen authored and shilman committed Mar 17, 2024
1 parent 7750f00 commit 9c5b3c3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions scripts/prepare/addon-bundle.ts
Original file line number Diff line number Diff line change
Expand Up @@ -126,8 +126,10 @@ const run = async ({ cwd, flags }: { cwd: string; flags: string[] }) => {
platform: 'neutral',
external: [...commonExternals, ...globalManagerPackages, ...globalPreviewPackages],
esbuildOptions: (options) => {
/* eslint-disable no-param-reassign */
options.platform = 'neutral';
Object.assign(options, getESBuildOptions(optimized));
/* eslint-enable no-param-reassign */
},
})
);
Expand Down

0 comments on commit 9c5b3c3

Please sign in to comment.