Commit 339579f8 authored by aniket-engg's avatar aniket-engg

handle deferred import

parent 0f4f699d
...@@ -133,7 +133,7 @@ export class Compiler { ...@@ -133,7 +133,7 @@ export class Compiler {
const checkIfFatalError = (error: CompilationError) => { const checkIfFatalError = (error: CompilationError) => {
// Ignore warnings and the 'Deferred import' error as those are generated by us as a workaround // Ignore warnings and the 'Deferred import' error as those are generated by us as a workaround
const isValidError = (error.message && error.message.includes('Deferred import')) ? false : error.severity !== 'warning' const isValidError = (error.message && error.message=== 'Deferred import') ? false : error.severity !== 'warning'
if(isValidError) noFatalErrors = false if(isValidError) noFatalErrors = false
} }
if (data.error) checkIfFatalError(data.error) if (data.error) checkIfFatalError(data.error)
......
...@@ -20,7 +20,7 @@ function mapVerbosity (v: number) { ...@@ -20,7 +20,7 @@ function mapVerbosity (v: number) {
} }
return levels[v] return levels[v]
} }
const version = require('../../../package.json').version const version = require('../package.json').version
commander.version(version) commander.version(version)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment