From 3cc5d35669b81ae096789d37d5efbf5370b6cdf7 Mon Sep 17 00:00:00 2001 From: Kevin Brey Date: Mon, 25 Nov 2024 12:50:46 -0600 Subject: [PATCH] support ES module format --- libs/single-spa-angular/webpack/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libs/single-spa-angular/webpack/index.ts b/libs/single-spa-angular/webpack/index.ts index 0046790..25ff1d4 100644 --- a/libs/single-spa-angular/webpack/index.ts +++ b/libs/single-spa-angular/webpack/index.ts @@ -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; }