Transform fb-internal code within plugins
Summary: This diff changes flipper-pkg to allow using fb-internal code in plugins when they are packaged as standalone packages. It basically transforms fb-stubs/fb folders in plugins in the same way as for Flipper app. Reviewed By: passy Differential Revision: D27173406 fbshipit-source-id: 8ba97d5f57b5e276c19d13270a0d810873504add
This commit is contained in:
committed by
Facebook GitHub Bot
parent
b45b5f854a
commit
4d3e631ce6
@@ -16,6 +16,7 @@ type FlipperEnvVars = {
|
||||
FLIPPER_TEST_RUNNER?: string;
|
||||
FLIPPER_ELECTRON_VERSION?: string;
|
||||
NODE_ENV?: string;
|
||||
FLIPPER_FORCE_PUBLIC_BUILD?: string;
|
||||
};
|
||||
|
||||
const flipperEnv = new Proxy(
|
||||
@@ -24,6 +25,7 @@ const flipperEnv = new Proxy(
|
||||
FLIPPER_TEST_RUNNER: undefined,
|
||||
FLIPPER_ELECTRON_VERSION: undefined,
|
||||
NODE_ENV: undefined,
|
||||
FLIPPER_FORCE_PUBLIC_BUILD: undefined,
|
||||
} as FlipperEnvVars,
|
||||
{
|
||||
get: function (obj, prop) {
|
||||
|
||||
Reference in New Issue
Block a user