From d81dac18b5b13cea23962c35a8b8e0472d775852 Mon Sep 17 00:00:00 2001 From: Andrey Goncharov Date: Fri, 16 Sep 2022 09:00:21 -0700 Subject: [PATCH] Work around empty file restirction Reviewed By: nikoant Differential Revision: D39578561 fbshipit-source-id: 3a471e7dd06a1e8cee2c7823b1d7f764110ecf80 --- desktop/scripts/build-utils.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/desktop/scripts/build-utils.tsx b/desktop/scripts/build-utils.tsx index 41f5b78f8..16db7ab6d 100644 --- a/desktop/scripts/build-utils.tsx +++ b/desktop/scripts/build-utils.tsx @@ -243,7 +243,7 @@ export async function moveServerSourceMaps( await fs.ensureDir(sourceMapFolder); // TODO: Remove me // Create an empty file not satisfy Sandcastle. Remove it once Sandcastle no longer requires the file - await fs.writeFile(path.join(sourceMapFolder, 'bundle.map'), ''); + await fs.writeFile(path.join(sourceMapFolder, 'bundle.map'), '{}'); await fs.move( rendererBundleMap, path.join(sourceMapFolder, 'main.bundle.map'),