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 JReinhold committed Apr 22, 2024
1 parent 62ee3e1 commit 300a6ba
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions scripts/prepare/addon-bundle.ts
Original file line number Diff line number Diff line change
Expand Up @@ -116,13 +116,12 @@ const run = async ({ cwd, flags }: { cwd: string; flags: string[] }) => {
...(optimized ? dtsConfig : {}),
entry: exportEntries,
format: ['cjs'],
target: 'node16',
platform: 'node',
external: commonExternals,
target: ['chrome100', 'safari15', 'firefox91'],
platform: 'neutral',
external: [...commonExternals, ...globalManagerPackages, ...globalPreviewPackages],
esbuildOptions: (options) => {
/* eslint-disable no-param-reassign */
options.conditions = ['module'];
options.platform = 'node';
options.platform = 'neutral';
Object.assign(options, getESBuildOptions(optimized));
/* eslint-enable no-param-reassign */
},
Expand Down

0 comments on commit 300a6ba

Please sign in to comment.