|
|
@ -313,7 +313,7 @@ function Compiler (handleImportCall) { |
|
|
|
while ((match = importRegex.exec(files[fileName].content))) { |
|
|
|
while ((match = importRegex.exec(files[fileName].content))) { |
|
|
|
var importFilePath = match[1] |
|
|
|
var importFilePath = match[1] |
|
|
|
if (importFilePath.startsWith('./')) { |
|
|
|
if (importFilePath.startsWith('./')) { |
|
|
|
var path = /(.*\/).*/.exec(target) |
|
|
|
var path = /(.*\/).*/.exec(fileName) |
|
|
|
if (path !== null) { |
|
|
|
if (path !== null) { |
|
|
|
importFilePath = importFilePath.replace('./', path[1]) |
|
|
|
importFilePath = importFilePath.replace('./', path[1]) |
|
|
|
} else { |
|
|
|
} else { |
|
|
|