Fix fast-refresh
Summary: Changelog: Make yarn start --fast-refreash load dynamic plugins Reviewed By: lblasa Differential Revision: D39653965 fbshipit-source-id: f6133ff0315c014e3e1c4c7921318a6d7db70eaf
This commit is contained in:
committed by
Facebook GitHub Bot
parent
aa801b6715
commit
9d2a37812c
@@ -7,8 +7,6 @@
|
||||
* @format
|
||||
*/
|
||||
|
||||
import path from 'path';
|
||||
import fs from 'fs-extra';
|
||||
import {
|
||||
getSourcePlugins,
|
||||
moveInstalledPluginsFromLegacyDir,
|
||||
@@ -23,12 +21,6 @@ export async function loadDynamicPlugins(): Promise<InstalledPluginDetails[]> {
|
||||
if (process.env.NODE_ENV === 'test') {
|
||||
return [];
|
||||
}
|
||||
if (process.env.FLIPPER_FAST_REFRESH) {
|
||||
console.log(
|
||||
'❌ Skipping loading of dynamic plugins because Fast Refresh is enabled. Fast Refresh only works with bundled plugins.',
|
||||
);
|
||||
return [];
|
||||
}
|
||||
await moveInstalledPluginsFromLegacyDir().catch((ex) =>
|
||||
console.error(
|
||||
'Eror while migrating installed plugins from legacy folder',
|
||||
|
||||
Reference in New Issue
Block a user