Simplify bundled plugin setup

Summary: Stop bundling plugins into Flipper Server bundles. In later diffs, we will start building all plugins even in dev mode which removes the need to bundle them.

Reviewed By: lblasa

Differential Revision: D39276249

fbshipit-source-id: 091405cfcf58aa7e1bd2b382da40f8d9841ae6b1
This commit is contained in:
Andrey Goncharov
2022-09-15 10:02:19 -07:00
committed by Facebook GitHub Bot
parent a67a4e5d0f
commit a888e6affa
14 changed files with 24 additions and 129 deletions

View File

@@ -27,6 +27,8 @@ import {
genMercurialRevision,
prepareDefaultPlugins,
moveSourceMaps,
buildServerAddOns,
buildHeadlessPlugins,
} from './build-utils';
import isFB from './isFB';
import copyPackageWithDependencies from './copy-package-with-dependencies';
@@ -311,6 +313,8 @@ async function copyStaticFolder(buildFolder: string) {
await compileMain();
await prepareDefaultPlugins(argv.channel === 'insiders');
await buildServerAddOns(false);
await buildHeadlessPlugins(false);
await copyStaticFolder(dir);
await downloadIcons(dir);
await compileRenderer(dir);