Skip to content

Commit d6953bd

Browse files
authored
use Angular's resolveExtensions
We want to allow ng-packagr output (.mjs) to be used in federation
1 parent ef2d54e commit d6953bd

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
@@ -301,6 +301,7 @@ async function runEsbuild(
301301
ngJitMode: 'false',
302302
},
303303
...(builderOptions.loader ? { loader: builderOptions.loader } : {}),
304+
resolveExtensions: ['.ts', '.tsx', '.mjs', '.js', '.cjs']
304305
};
305306

306307
const ctx = await esbuild.context(config);

0 commit comments

Comments
 (0)