diff --git a/packages/beize_compiler/lib/compiler/compiler.dart b/packages/beize_compiler/lib/compiler/compiler.dart index 5f0c247..ef4dcd9 100644 --- a/packages/beize_compiler/lib/compiler/compiler.dart +++ b/packages/beize_compiler/lib/compiler/compiler.dart @@ -108,7 +108,7 @@ class BeizeCompiler { } String resolveImportPath(final String path) { - final String importDir = p.dirname(p.join(root, moduleName)); + final String importDir = p.dirname(modulePath); final String absolutePath = p.join(importDir, path); return p.normalize(absolutePath); }