@vertz/compiler 0.2.13 → 0.2.15

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.
Files changed (2) hide show
  1. package/dist/index.js +5 -1
  2. 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
- return importInfo.importDecl.getModuleSpecifierValue() === moduleSpecifier;
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();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vertz/compiler",
3
- "version": "0.2.13",
3
+ "version": "0.2.15",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "description": "Vertz compiler — internal, no stability guarantee",