diff --git a/src/compiler.js b/src/compiler.js index 29647863d6..1a414470cd 100644 --- a/src/compiler.js +++ b/src/compiler.js @@ -36,7 +36,7 @@ function compileFileOrFiles (filename, isDirectory, cb) { compiler.compile(sources, filepath) } ], function (err, result) { - let errors = (result.errors || []).filter((e) => e.type === 'Error') + let errors = (result.errors || []).filter((e) => e.type === 'Error' || e.severity === 'error') if (errors.length > 0) { console.dir(errors) return cb(new Error('errors compiling'))