Concurrent Function Upgrade for Enhanced Performance (#4918)
Summary: Republishing sanjaiyan-dev's PR https://github.com/facebook/flipper/pull/4889 running `git rebase` because of a conflict. Pull Request resolved: https://github.com/facebook/flipper/pull/4918 Reviewed By: lblasa Differential Revision: D47294545 Pulled By: passy fbshipit-source-id: 74904ec6179ed5a3bab6f9b701c3cd769ecad3bf
This commit is contained in:
committed by
Facebook GitHub Bot
parent
c8776175c3
commit
7cef8286f9
@@ -456,9 +456,11 @@ async function buildServerRelease() {
|
||||
platforms.push(BuildPlatform.WINDOWS);
|
||||
}
|
||||
|
||||
for (const platform of platforms) {
|
||||
await bundleServerReleaseForPlatform(dir, versionNumber, platform);
|
||||
}
|
||||
await Promise.all(
|
||||
platforms.map((platform) =>
|
||||
bundleServerReleaseForPlatform(dir, versionNumber, platform),
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
function nodeArchFromBuildPlatform(platform: BuildPlatform): string {
|
||||
|
||||
@@ -168,8 +168,7 @@ export async function moveSourceMaps(
|
||||
// If we don't move them out of the build folders, they'll get included in the ASAR
|
||||
// which we don't want.
|
||||
console.log(`⏭ Removing source maps.`);
|
||||
await fs.remove(mainBundleMap);
|
||||
await fs.remove(rendererBundleMap);
|
||||
await Promise.all([fs.remove(mainBundleMap), fs.remove(rendererBundleMap)]);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -69,9 +69,12 @@ async function getWorkspacesByRoot(
|
||||
}
|
||||
|
||||
export async function getWorkspaces(): Promise<Workspaces> {
|
||||
const rootWorkspaces = await getWorkspacesByRoot(rootDir);
|
||||
const publicPluginsWorkspaces = await getWorkspacesByRoot(publicPluginsDir);
|
||||
const fbPluginsWorkspaces = await getWorkspacesByRoot(fbPluginsDir);
|
||||
const [rootWorkspaces, publicPluginsWorkspaces, fbPluginsWorkspaces] =
|
||||
await Promise.all([
|
||||
getWorkspacesByRoot(rootDir),
|
||||
getWorkspacesByRoot(publicPluginsDir),
|
||||
getWorkspacesByRoot(fbPluginsDir),
|
||||
]);
|
||||
const mergedWorkspaces: Workspaces = {
|
||||
rootPackage: rootWorkspaces!.rootPackage,
|
||||
packages: [
|
||||
|
||||
Reference in New Issue
Block a user