Make sure antd is used from Flipper
Summary: Fix build job that didn't include require rewrites for antd Reviewed By: timur-valiev Differential Revision: D26311554 fbshipit-source-id: 473a9c7d343e4534a33e5938ea27667f7795d8ac
This commit is contained in:
committed by
Facebook GitHub Bot
parent
949b57b473
commit
9987c8ee89
@@ -15,13 +15,17 @@ import {
|
||||
} from '@babel/types';
|
||||
import {NodePath} from '@babel/traverse';
|
||||
|
||||
// This list should match `dispatcher/plugins.tsx` and `builtInModules` in `desktop/.eslintrc.js`
|
||||
const requireReplacements: any = {
|
||||
flipper: 'global.Flipper',
|
||||
'flipper-plugin': 'global.FlipperPlugin',
|
||||
react: 'global.React',
|
||||
'react-dom': 'global.ReactDOM',
|
||||
adbkit: 'global.adbkit',
|
||||
antd: 'global.antd',
|
||||
immer: 'global.Immer',
|
||||
'@emotion/styled': 'global.emotion_styled',
|
||||
'@ant-design/icons': 'global.antdesign_icons',
|
||||
};
|
||||
|
||||
export function tryReplaceFlipperRequire(path: NodePath<CallExpression>) {
|
||||
|
||||
Reference in New Issue
Block a user