From 631691727422fde28376d5fc7e5aaade92d90896 Mon Sep 17 00:00:00 2001 From: Faris Ansari Date: Fri, 5 Oct 2018 13:04:31 +0530 Subject: [PATCH] fix(rollup): Add message to indicate addition of new dependency --- rollup/config.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/rollup/config.js b/rollup/config.js index 72452b21b1..2f5ed27934 100644 --- a/rollup/config.js +++ b/rollup/config.js @@ -76,6 +76,14 @@ function get_rollup_options_for_js(output_file, input_files) { // skip warnings if (['EVAL', 'SOURCEMAP_BROKEN', 'NAMESPACE_CONFLICT'].includes(code)) return; + if ('UNRESOLVED_IMPORT' === code) { + log(chalk.yellow.underline(code), ':', message); + const command = chalk.yellow('bench setup requirements'); + log(`Cannot find some dependencies. You may have to run "${command}" to install them.`); + log(); + return; + } + if (loc) { log(`${loc.file} (${loc.line}:${loc.column}) ${message}`); if (frame) log(frame);