Skip to content

Commit 7247b5c

Browse files
committed
fix(native-federation): allow esbuild to resolve .mjs for federated builds
1 parent ef2d54e commit 7247b5c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

libs/native-federation/src/utils/angular-esbuild-adapter.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -274,6 +274,7 @@ async function runEsbuild(
274274
absWorkingDir,
275275
external,
276276
logLevel,
277+
resolveExtensions: ['.mjs', '.ts', '.tsx', '.js', '.jsx', '.cjs', '.json'],
277278
bundle: true,
278279
sourcemap: sourcemapOptions.scripts,
279280
minify: !dev,

0 commit comments

Comments
 (0)