Install pre-bundled packages 2/N

Summary: A first simple version of pre-bundled plugin installation. Currently both pre-bundled and source-only plugins are supported. Pre-bundled plugins should have folder "dist" inside and package.json's "main" field should point to the entry point script there.

Reviewed By: passy

Differential Revision: D19834020

fbshipit-source-id: 7e0b495fb9666acbb22fc32ca2382339cd9dc72f
This commit is contained in:
Anton Nikolaev
2020-02-12 04:55:55 -08:00
committed by Facebook Github Bot
parent c315691b2d
commit 707759f096
3 changed files with 29 additions and 23 deletions

View File

@@ -80,7 +80,7 @@ export default (store: Store, logger: Logger) => {
};
function getBundledPlugins(): Array<PluginDefinition> {
if (!isProduction()) {
if (!isProduction() || process.env.FLIPPER_NO_EMBEDDED_PLUGINS) {
// Plugins are only bundled in production builds
return [];
}