pull/1/head
yann300 8 years ago
parent fa34ec91f8
commit 15039380f9
  1. 7
      src/app/compiler/compiler.js

@ -236,7 +236,12 @@ function Compiler (handleImportCall) {
while ((match = importRegex.exec(files[fileName]))) { while ((match = importRegex.exec(files[fileName]))) {
var importFilePath = match[1] var importFilePath = match[1]
if (importFilePath.startsWith('./')) { 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.. // FIXME: should be using includes or sets, but there's also browser compatibility..

Loading…
Cancel
Save