From 37d334b314bcaa6f3cc3bc3dc6241dd6cfe5b1f5 Mon Sep 17 00:00:00 2001 From: Dominic Gannaway Date: Thu, 23 Mar 2017 16:20:25 +0000 Subject: [PATCH] added extractErrors warning --- scripts/rollup/build.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/scripts/rollup/build.js b/scripts/rollup/build.js index 223f033fdb..351895a3e4 100644 --- a/scripts/rollup/build.js +++ b/scripts/rollup/build.js @@ -350,6 +350,13 @@ rimraf(join('build', 'rollup'), async () => { await createBundle(bundle, bundleTypes.FB); await createBundle(bundle, bundleTypes.RN); } + if (argv.extractErrors) { + console.warn( + '\nWarning: this build was created with --extractErrors enabled.\n' + + 'this will result in extremely slow builds and should only be\n' + + 'used when the error map needs to be rebuilt.\n' + ); + } });