From 6cecac9c6cf82300be333461a5b1e11defdf9320 Mon Sep 17 00:00:00 2001 From: Dmytro Vradii Date: Sun, 20 Oct 2024 16:20:58 +0300 Subject: [PATCH] fix ES target for shared libs --- libs/native-federation/src/utils/angular-esbuild-adapter.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/native-federation/src/utils/angular-esbuild-adapter.ts b/libs/native-federation/src/utils/angular-esbuild-adapter.ts index 66939c14..3a7279f3 100644 --- a/libs/native-federation/src/utils/angular-esbuild-adapter.ts +++ b/libs/native-federation/src/utils/angular-esbuild-adapter.ts @@ -269,7 +269,7 @@ async function runEsbuild( splitting: kind === 'mapping-or-exposed', platform: 'browser', format: 'esm', - target: ['esnext'], + target: target, logLimit: kind === 'shared-package' ? 1 : 0, plugins: plugins || [ createCompilerPlugin(