Skip to content

Commit 0b27536

Browse files
Merge pull request #691 from aramirezj/fix/add-outputPath-param
fix(nativeFederation): fixes the missing behaviour of the param outputPath
2 parents ae03fba + 7fbf48b commit 0b27536

File tree

4 files changed

+9
-1
lines changed

4 files changed

+9
-1
lines changed

libs/native-federation/src/builders/build/builder.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,10 @@ export async function* runBuilder(
122122
options.baseHref = nfOptions.baseHref;
123123
}
124124

125+
if(nfOptions.outputPath){
126+
options.outputPath = nfOptions.outputPath;
127+
}
128+
125129
const rebuildEvents = new RebuildHubs();
126130

127131
const adapter = createAngularBuildAdapter(options, context, rebuildEvents);

libs/native-federation/src/builders/build/schema.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ export interface NfBuilderSchema extends JsonObject {
1212
skipHtmlTransform: boolean;
1313
esmsInitOptions: ESMSInitOptions;
1414
baseHref?: string;
15+
outputPath?: string;
1516
ssr: boolean;
1617
devServer?: boolean;
1718
} // eslint-disable-line

libs/native-federation/src/builders/build/schema.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,9 @@
4646
"baseHref": {
4747
"type": "string"
4848
},
49+
"outputPath": {
50+
"type": "string"
51+
},
4952
"esmsInitOptions": {
5053
"type": "object",
5154
"description": "Options for esms-module-shims https://github.com/guybedford/es-module-shims?tab=readme-ov-file#init-options",

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,7 @@ async function runEsbuild(
279279
splitting: kind === 'mapping-or-exposed',
280280
platform: platform ?? 'browser',
281281
format: 'esm',
282-
target: ['esnext'],
282+
target: target,
283283
logLimit: kind === 'shared-package' ? 1 : 0,
284284
plugins: (plugins as any) || [
285285
createCompilerPlugin(

0 commit comments

Comments
 (0)