From 6cb6b1d6682077852b48b7eae597df58e871ed23 Mon Sep 17 00:00:00 2001 From: Dan Abramov Date: Fri, 8 Nov 2019 19:41:40 +0000 Subject: [PATCH] Add yarn build --unsafe-partial (#17316) * Add yarn build --partial * unsafe-partial --- scripts/rollup/build.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/rollup/build.js b/scripts/rollup/build.js index cc5990aa0bc6d..ff0f9760bde1d 100644 --- a/scripts/rollup/build.js +++ b/scripts/rollup/build.js @@ -646,7 +646,9 @@ function handleRollupError(error) { } async function buildEverything() { - await asyncRimRaf('build'); + if (!argv['unsafe-partial']) { + await asyncRimRaf('build'); + } // Run them serially for better console output // and to avoid any potential race conditions.