Skip to content

Commit

Permalink
Merge pull request #691 from aramirezj/fix/add-outputPath-param
Browse files Browse the repository at this point in the history
fix(nativeFederation): fixes the missing behaviour of the param outputPath
  • Loading branch information
manfredsteyer authored Feb 15, 2025
2 parents ae03fba + 7fbf48b commit 0b27536
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 1 deletion.
4 changes: 4 additions & 0 deletions libs/native-federation/src/builders/build/builder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,10 @@ export async function* runBuilder(
options.baseHref = nfOptions.baseHref;
}

if(nfOptions.outputPath){
options.outputPath = nfOptions.outputPath;
}

const rebuildEvents = new RebuildHubs();

const adapter = createAngularBuildAdapter(options, context, rebuildEvents);
Expand Down
1 change: 1 addition & 0 deletions libs/native-federation/src/builders/build/schema.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ export interface NfBuilderSchema extends JsonObject {
skipHtmlTransform: boolean;
esmsInitOptions: ESMSInitOptions;
baseHref?: string;
outputPath?: string;
ssr: boolean;
devServer?: boolean;
} // eslint-disable-line
3 changes: 3 additions & 0 deletions libs/native-federation/src/builders/build/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,9 @@
"baseHref": {
"type": "string"
},
"outputPath": {
"type": "string"
},
"esmsInitOptions": {
"type": "object",
"description": "Options for esms-module-shims https://github.com/guybedford/es-module-shims?tab=readme-ov-file#init-options",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@ async function runEsbuild(
splitting: kind === 'mapping-or-exposed',
platform: platform ?? 'browser',
format: 'esm',
target: ['esnext'],
target: target,
logLimit: kind === 'shared-package' ? 1 : 0,
plugins: (plugins as any) || [
createCompilerPlugin(
Expand Down

0 comments on commit 0b27536

Please sign in to comment.