Fix release build issue

Summary:
D24358369 (8a31e984b3) introduced a dependency outside the `sonar/` dir, which probably should not have happened. D27324576 finally broke this, by adding a dep to QPL core, which will never be installed in our CI.

This diff unbreaks that rewriting the require to a locally provided version of crc32, however this is a stop gap, and it would be great if someone would look into a sustainable solution :)

Reviewed By: passy

Differential Revision: D27327272

fbshipit-source-id: 70cdf21c7ecf081ef804d6338ec11e498e3cb7cf
This commit is contained in:
Michel Weststrate
2021-03-25 08:40:41 -07:00
committed by Facebook GitHub Bot
parent bfde7c4d24
commit 740fbe57fd
4 changed files with 12 additions and 2 deletions

View File

@@ -26,6 +26,7 @@ const requireReplacements: any = {
immer: 'global.Immer',
'@emotion/styled': 'global.emotion_styled',
'@ant-design/icons': 'global.antdesign_icons',
crc32: 'global.crc32_hack_fix_me',
};
export function tryReplaceFlipperRequire(path: NodePath<CallExpression>) {