Fix starting Flipper electron in dev mode without default plugins
Summary: yarn start --no-default-plugins currently fails Reviewed By: nikoant Differential Revision: D37456367 fbshipit-source-id: 3700055b3b780af4575dd67d50532050d12119df
This commit is contained in:
committed by
Facebook GitHub Bot
parent
c88e8e07d0
commit
e4d33483d0
@@ -20,7 +20,11 @@ import http from 'http';
|
|||||||
import path from 'path';
|
import path from 'path';
|
||||||
import fs from 'fs-extra';
|
import fs from 'fs-extra';
|
||||||
import {hostname} from 'os';
|
import {hostname} from 'os';
|
||||||
import {compileMain, prepareDefaultPlugins} from './build-utils';
|
import {
|
||||||
|
compileMain,
|
||||||
|
prepareDefaultPlugins,
|
||||||
|
prepareHeadlessPlugins,
|
||||||
|
} from './build-utils';
|
||||||
import Watchman from './watchman';
|
import Watchman from './watchman';
|
||||||
// @ts-ignore no typings for metro
|
// @ts-ignore no typings for metro
|
||||||
import Metro from 'metro';
|
import Metro from 'metro';
|
||||||
@@ -441,6 +445,7 @@ function checkDevServer() {
|
|||||||
await prepareDefaultPlugins(
|
await prepareDefaultPlugins(
|
||||||
process.env.FLIPPER_RELEASE_CHANNEL === 'insiders',
|
process.env.FLIPPER_RELEASE_CHANNEL === 'insiders',
|
||||||
);
|
);
|
||||||
|
await prepareHeadlessPlugins();
|
||||||
await ensurePluginFoldersWatchable();
|
await ensurePluginFoldersWatchable();
|
||||||
const port = await detect(DEFAULT_PORT);
|
const port = await detect(DEFAULT_PORT);
|
||||||
const {app, server} = await startAssetServer(port);
|
const {app, server} = await startAssetServer(port);
|
||||||
|
|||||||
Reference in New Issue
Block a user