diff --git a/draftlogs/6739_fix.md b/draftlogs/6739_fix.md new file mode 100644 index 00000000000..82ad01f7837 --- /dev/null +++ b/draftlogs/6739_fix.md @@ -0,0 +1 @@ + - Fix error display for failing builds [[#6739](https://github.com/plotly/plotly.js/pull/6739)] diff --git a/tasks/util/bundle_wrapper.js b/tasks/util/bundle_wrapper.js index 078961747a0..b2510381deb 100644 --- a/tasks/util/bundle_wrapper.js +++ b/tasks/util/bundle_wrapper.js @@ -76,6 +76,8 @@ module.exports = function _bundle(pathToIndex, pathToBundle, opts, cb) { console.log('err:', err); } else if(stats.errors && stats.errors.length) { console.log('stats.errors:', stats.errors); + } else if(stats.compilation && stats.compilation.errors && stats.compilation.errors.length) { + console.log('stats.compilation.errors:', stats.compilation.errors); } else { console.log('success:', config.output.path + '/' + config.output.filename);