From 4cb40de3f512f3eed79dae909bda539736be1999 Mon Sep 17 00:00:00 2001 From: Anton Nikolaev Date: Tue, 16 Feb 2021 10:46:11 -0800 Subject: [PATCH] Device plugin management (3/n): unbundle less used device plugins from Flipper Insiders builds Summary: Now as we can install device plugins from Marketplace, I was able to unbundle device plugins which were used quite rarely, but still added ~3 MB to the final Flipper bundle. Reviewed By: mweststrate Differential Revision: D26337297 fbshipit-source-id: 23a36cc15ca976a1215440192718d985e1f322fd --- desktop/scripts/build-utils.ts | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/desktop/scripts/build-utils.ts b/desktop/scripts/build-utils.ts index 5c912e35a..31cd424fc 100644 --- a/desktop/scripts/build-utils.ts +++ b/desktop/scripts/build-utils.ts @@ -30,18 +30,14 @@ const {version} = require('../package.json'); const dev = process.env.NODE_ENV !== 'production'; -// For insiders builds we bundle into them all the device plugins, -// plus top 10 "universal" plugins starred by more than 100 users. +// For insiders builds we bundle top 5 popular device plugins, +// plus top 10 popular "universal" plugins starred by more than 100 users. const hardcodedPlugins = new Set([ - // Device plugins + // Popular device plugins 'DeviceLogs', 'CrashReporter', 'MobileBuilds', - 'DeviceCPU', - 'Tracery', 'Hermesdebuggerrn', - 'kaios-big-allocations', - 'kaios-graphs', 'React', // Popular client plugins 'Inspector',