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
@@ -9,12 +9,12 @@
|
||||
|
||||
import * as TestUtils from '../test-utils/test-utils';
|
||||
import * as testPlugin from './TestPlugin';
|
||||
import {createState} from '../state/atom';
|
||||
import {PluginClient} from '../plugin/Plugin';
|
||||
import {DevicePluginClient} from '../plugin/DevicePlugin';
|
||||
import {createState} from 'flipper-plugin-core';
|
||||
import {PluginClient} from 'flipper-plugin-core';
|
||||
import {DevicePluginClient} from 'flipper-plugin-core';
|
||||
import mockConsole from 'jest-mock-console';
|
||||
import {sleep} from 'flipper-common';
|
||||
import {createDataSource} from '../state/createDataSource';
|
||||
import {createDataSource} from 'flipper-plugin-core';
|
||||
|
||||
test('it can start a plugin and lifecycle events', () => {
|
||||
const {instance, ...p} = TestUtils.startPlugin(testPlugin);
|
||||
@@ -357,9 +357,6 @@ test('plugins can handle import errors', async () => {
|
||||
"An error occurred when importing data for plugin 'TestPlugin': 'Error: Oops",
|
||||
[Error: Oops],
|
||||
],
|
||||
Array [
|
||||
"Warning: ReactDOM.render is no longer supported in React 18. Use createRoot instead. Until you switch to the new API, your app will behave as if it's running React 17. Learn more: https://reactjs.org/link/switch-to-createroot",
|
||||
],
|
||||
]
|
||||
`);
|
||||
} finally {
|
||||
|
||||
Reference in New Issue
Block a user