Commit 8c0d3417 authored by yann300's avatar yann300 Committed by GitHub

Merge pull request #697 from ethereum/fixImport

Fix import
parents fa34ec91 15039380
......@@ -236,7 +236,12 @@ function Compiler (handleImportCall) {
while ((match = importRegex.exec(files[fileName]))) {
var importFilePath = match[1]
if (importFilePath.startsWith('./')) {
importFilePath = importFilePath.slice(2)
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..
......
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