parseImports currently tries to parse the file names from error messages. It would be much more reliable to use the import callback the compiler provides:
compilerStandard(json, function (path) { ...})
The function will need to return either { error: "Error message" } or { contents: "<file contents>" }.
parseImports
currently tries to parse the file names from error messages. It would be much more reliable to use the import callback the compiler provides:compilerStandard(json, function (path) { ...})
The function will need to return either
{ error: "Error message" }
or{ contents: "<file contents>" }
.