@vertz/compiler 0.2.13 → 0.2.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +5 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -169,7 +169,11 @@ function isFromImport(identifier, moduleSpecifier) {
|
|
|
169
169
|
const importInfo = findImportForIdentifier(identifier);
|
|
170
170
|
if (!importInfo)
|
|
171
171
|
return false;
|
|
172
|
-
|
|
172
|
+
const actual = importInfo.importDecl.getModuleSpecifierValue();
|
|
173
|
+
if (actual === moduleSpecifier)
|
|
174
|
+
return true;
|
|
175
|
+
const metaEquivalent = moduleSpecifier.replace(/^@vertz\//, "vertz/");
|
|
176
|
+
return actual === metaEquivalent;
|
|
173
177
|
}
|
|
174
178
|
function findImportForIdentifier(identifier) {
|
|
175
179
|
const sourceFile = identifier.getSourceFile();
|