Skip to content

Commit 0736296

Browse files
committed
fix(nf): Broke bundling up in subtasks
1 parent 3e410e7 commit 0736296

File tree

1 file changed

+19
-3
lines changed

1 file changed

+19
-3
lines changed

libs/native-federation-core/src/lib/core/build-for-federation.ts

Lines changed: 19 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,40 +57,56 @@ export async function buildForFederation(
5757
splitShared(config.shared);
5858

5959
let start = process.hrtime();
60-
6160
const sharedPackageInfoBrowser = await bundleShared(
6261
sharedBrowser,
6362
config,
6463
fedOptions,
6564
externals,
6665
'browser'
6766
);
67+
logger.measure(
68+
start,
69+
'[build artifacts] - To bundle all shared browser externals'
70+
);
6871

72+
start = process.hrtime();
6973
const sharedPackageInfoServer = await bundleShared(
7074
sharedServer,
7175
config,
7276
fedOptions,
7377
externals,
7478
'node'
7579
);
80+
logger.measure(
81+
start,
82+
'[build artifacts] - To bundle all shared node externals'
83+
);
7684

85+
start = process.hrtime();
7786
const separatePackageInfoBrowser = await bundleSeparate(
7887
separateBrowser,
7988
externals,
8089
config,
8190
fedOptions,
8291
'browser'
8392
);
93+
logger.measure(
94+
start,
95+
'[build artifacts] - To bundle all separate browser externals'
96+
);
8497

98+
start = process.hrtime();
8599
const separatePackageInfoServer = await bundleSeparate(
86100
separateServer,
87101
externals,
88102
config,
89103
fedOptions,
90104
'node'
91105
);
92-
93-
logger.measure(start, '[build artifacts] - To bundle all externals');
106+
logger.measure(
107+
start,
108+
'[build artifacts] - To bundle all separate node externals'
109+
);
94110

95111
sharedPackageInfoCache = [
96112
...sharedPackageInfoBrowser,

0 commit comments

Comments
 (0)