Work around empty file restirction

Reviewed By: nikoant

Differential Revision: D39578561

fbshipit-source-id: 3a471e7dd06a1e8cee2c7823b1d7f764110ecf80
This commit is contained in:
Andrey Goncharov
2022-09-16 09:00:21 -07:00
committed by Facebook GitHub Bot
parent 2aa3dc9bd8
commit d81dac18b5

View File

@@ -243,7 +243,7 @@ export async function moveServerSourceMaps(
await fs.ensureDir(sourceMapFolder); await fs.ensureDir(sourceMapFolder);
// TODO: Remove me // TODO: Remove me
// Create an empty file not satisfy Sandcastle. Remove it once Sandcastle no longer requires the file // 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( await fs.move(
rendererBundleMap, rendererBundleMap,
path.join(sourceMapFolder, 'main.bundle.map'), path.join(sourceMapFolder, 'main.bundle.map'),