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

make handleImportCall optional

parent c54ce861
...@@ -324,6 +324,7 @@ function Compiler (handleImportCall) { ...@@ -324,6 +324,7 @@ function Compiler (handleImportCall) {
continue continue
} }
if (handleImportCall) {
handleImportCall(m, function (err, content) { handleImportCall(m, function (err, content) {
if (err) { if (err) {
cb(err) cb(err)
...@@ -332,6 +333,7 @@ function Compiler (handleImportCall) { ...@@ -332,6 +333,7 @@ function Compiler (handleImportCall) {
gatherImports(files, target, importHints, cb) 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