Fix standalone package build for unity plugins

Summary: Fixed error on building standalone packages for "unity" apps. The error was because "immer" imports were not transformed to use "immer" from Flipper bundle.

Reviewed By: passy

Differential Revision: D22357571

fbshipit-source-id: 590321f36208c9ed02d56d2c0c085c7cd1878018
This commit is contained in:
Anton Nikolaev
2020-07-02 10:19:07 -07:00
committed by Facebook GitHub Bot
parent 91cccbe436
commit 70b87b70c7
2 changed files with 3 additions and 0 deletions

View File

@@ -21,6 +21,7 @@ const requireReplacements: any = {
react: 'global.React',
'react-dom': 'global.ReactDOM',
adbkit: 'global.adbkit',
immer: 'global.Immer',
};
export function tryReplaceFlipperRequire(path: NodePath<CallExpression>) {