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:
committed by
Facebook GitHub Bot
parent
a67a4e5d0f
commit
a888e6affa
@@ -127,7 +127,7 @@ export const requirePluginInternal = async (
|
||||
pluginDetails: ActivatablePluginDetails,
|
||||
): Promise<PluginDefinition> => {
|
||||
let plugin = pluginDetails.isBundled
|
||||
? defaultPluginsIndex[pluginDetails.name]
|
||||
? defaultPluginsIndex[pluginDetails.name].source
|
||||
: await getRenderHostInstance().requirePlugin(pluginDetails.entry);
|
||||
if (!plugin) {
|
||||
throw new Error(
|
||||
|
||||
Reference in New Issue
Block a user