Skip to content

Commit

Permalink
Merge pull request #24534 from storybookjs/norbert/module-type-common…
Browse files Browse the repository at this point in the history
…js-support

ManagerBuilder: Fix `"type": "commonjs"` compatibility
  • Loading branch information
ndelangen authored Oct 20, 2023
2 parents c906a1a + 3ae6681 commit 50f3fdb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code/builders/builder-manager/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export const getConfig: ManagerBuilder['getConfig'] = async (options) => {
return {
entryPoints: realEntryPoints,
outdir: join(options.outputDir || './', 'sb-addons'),
format: 'esm',
format: 'iife',
write: false,
ignoreAnnotations: true,
resolveExtensions: ['.ts', '.tsx', '.mjs', '.js', '.jsx'],
Expand Down

0 comments on commit 50f3fdb

Please sign in to comment.