Split flipper-plugin package
Summary: flipper-server-companion depends on flipper-plugin. flipper-plugin includes dependencies that run only in a browser. Splitting flipper-plugin into core and browser packages helps to avoid including browser-only dependencies into flipper-server bundle. As a result, bundle size could be cut in half. Subsequently, RSS usage drops as there is twice as less code to process for V8. Note: it currently breaks external flipper-data-source package. It will be restored in subsequent diffs Reviewed By: lblasa Differential Revision: D38658285 fbshipit-source-id: 751b11fa9f3a2d938ce166687b8310ba8b059dee
This commit is contained in:
committed by
Facebook GitHub Bot
parent
2090120cda
commit
97b8b8a1c4
@@ -19,7 +19,7 @@
|
||||
"axios": "^0.26.0",
|
||||
"flipper-common": "0.0.0",
|
||||
"flipper-doctor": "0.0.0",
|
||||
"flipper-plugin": "0.0.0",
|
||||
"flipper-plugin-core": "0.0.0",
|
||||
"flipper-plugin-lib": "0.0.0",
|
||||
"flipper-server-companion": "0.0.0",
|
||||
"form-data": "^4.0.0",
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
* @format
|
||||
*/
|
||||
|
||||
import {DeviceLogEntry} from 'flipper-plugin';
|
||||
import {DeviceLogEntry} from 'flipper-plugin-core';
|
||||
import {parseAndroidCrash, shouldParseAndroidLog} from '../AndroidCrashUtils';
|
||||
|
||||
function getAndroidLog(
|
||||
|
||||
@@ -12,9 +12,7 @@ import {
|
||||
ServerAddOnStartDetails,
|
||||
} from 'flipper-common';
|
||||
import {assertNotNull} from '../comms/Utilities';
|
||||
// Special subset of flipper-plugin exports designed for server-side usage
|
||||
// eslint-disable-next-line no-restricted-imports
|
||||
import * as FlipperPluginSDK from 'flipper-plugin/src/server';
|
||||
import * as FlipperPluginSDK from 'flipper-plugin-core';
|
||||
|
||||
declare global {
|
||||
// eslint-disable-next-line no-var
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
"path": "../flipper-common"
|
||||
},
|
||||
{
|
||||
"path": "../flipper-plugin"
|
||||
"path": "../flipper-plugin-core"
|
||||
},
|
||||
{
|
||||
"path": "../flipper-server-companion"
|
||||
|
||||
Reference in New Issue
Block a user