From 9020b66f758b0cf493e1c2df4680d34a7aa4f509 Mon Sep 17 00:00:00 2001 From: eric Date: Sun, 20 Jan 2019 15:43:29 -0500 Subject: Remove psModule references (#119) Resolves #110 --- src/bundle.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/bundle.js b/src/bundle.js index 99633f1..3742124 100644 --- a/src/bundle.js +++ b/src/bundle.js @@ -45,10 +45,11 @@ module.exports = function bundle(options, bundleModules) { const errorMessage = stderr.join(''); if (errorMessage.length) { - psModule.emitError(errorMessage); + reject(new Error(`bundling failed: ${errorMessage}`)) + } + else { + reject(new Error('bundling failed')) } - - reject(new Error('bundling failed')) } else { resolve(fs.appendFileAsync(options.bundleOutput, `module.exports = ${options.bundleNamespace}`)) -- cgit v1.2.3