Skip to content

Commit

Permalink
support ES module format
Browse files Browse the repository at this point in the history
  • Loading branch information
manbearwiz authored Nov 25, 2024
1 parent 905f446 commit 3cc5d35
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libs/single-spa-angular/webpack/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,8 @@ export default (config: any, options?: Options, extraOptions?: DefaultExtraOptio

const mergedConfig = mergeConfigs(config, singleSpaConfig);

if (mergedConfig.output.libraryTarget === 'system') {
// Don't used named exports when exporting in System.register format.
if (mergedConfig.output.libraryTarget === 'system' || mergedConfig.output.libraryTarget === 'module')
// Don't used named exports when exporting in System.register or ES Module format.
delete mergedConfig.output.library;
}

Expand Down

0 comments on commit 3cc5d35

Please sign in to comment.