Disable plugin auto-update in dev mode
Summary: When Flipper is running in dev mode we should always use bundled version of plugin (e.g. loaded from sources) even if a newer version is installed. Otherwise it could happen that Flipper will load installed version and it will not be possible to test your changes of plugin sources. Reviewed By: passy Differential Revision: D22016564 fbshipit-source-id: fbf63d5248b60034dc61688e4faa9b54890b744e
This commit is contained in:
committed by
Facebook GitHub Bot
parent
763853a7cf
commit
74a27aafcc
@@ -45,6 +45,11 @@ if (process.argv.includes('--no-embedded-plugins')) {
|
||||
if (process.argv.includes('--fast-refresh')) {
|
||||
process.env.FLIPPER_FAST_REFRESH = 'true';
|
||||
}
|
||||
// By default plugin auto-update is disabled in dev mode,
|
||||
// but it is possible to enable it using this command line argument.
|
||||
if (!process.argv.includes('--plugin-auto-update')) {
|
||||
process.env.FLIPPER_DISABLE_PLUGIN_AUTO_UPDATE = 'true';
|
||||
}
|
||||
|
||||
function launchElectron(port: number) {
|
||||
const entry = process.env.FLIPPER_FAST_REFRESH ? 'init-fast-refresh' : 'init';
|
||||
|
||||
Reference in New Issue
Block a user