Commit 2e2d9df3 authored by Iuri Matias's avatar Iuri Matias

make handleImportCall optional

parent c54ce861
...@@ -324,14 +324,16 @@ function Compiler (handleImportCall) { ...@@ -324,14 +324,16 @@ function Compiler (handleImportCall) {
continue continue
} }
handleImportCall(m, function (err, content) { if (handleImportCall) {
if (err) { handleImportCall(m, function (err, content) {
cb(err) if (err) {
} else { cb(err)
files[m] = { content } } else {
gatherImports(files, target, importHints, cb) files[m] = { content }
} gatherImports(files, target, importHints, cb)
}) }
})
}
return return
} }
......
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