|
|
|
@ -236,8 +236,13 @@ function Compiler (handleImportCall) { |
|
|
|
|
while ((match = importRegex.exec(files[fileName]))) { |
|
|
|
|
var importFilePath = match[1] |
|
|
|
|
if (importFilePath.startsWith('./')) { |
|
|
|
|
var path = /(.*\/).*/.exec(target) |
|
|
|
|
if (path !== null) { |
|
|
|
|
importFilePath = importFilePath.replace('./', path[1]) |
|
|
|
|
} else { |
|
|
|
|
importFilePath = importFilePath.slice(2) |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// FIXME: should be using includes or sets, but there's also browser compatibility..
|
|
|
|
|
if (importHints.indexOf(importFilePath) === -1) { |
|
|
|
|