@marko/language-tools 2.5.10 → 2.5.11

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 CHANGED
@@ -2432,10 +2432,9 @@ constructor(_?: Return) {}
2432
2432
  const def = tagName ? this.#lookup.getTag(tagName) : void 0;
2433
2433
  const isHTML = def == null ? void 0 : def.html;
2434
2434
  const importPath = !isHTML && resolveTagImport(this.#filename, def);
2435
- const isMissing = def && !isHTML && !importPath;
2436
2435
  let tagIdentifier;
2437
2436
  let isTemplate = false;
2438
- if (!isHTML || !isMissing) {
2437
+ if (!isHTML && (!def || importPath)) {
2439
2438
  const tagId = this.#ensureTagId(tag);
2440
2439
  tagIdentifier = varLocal("tag_" + tagId);
2441
2440
  this.#extractor.write(`const ${tagIdentifier} = (
package/dist/index.mjs CHANGED
@@ -2395,10 +2395,9 @@ constructor(_?: Return) {}
2395
2395
  const def = tagName ? this.#lookup.getTag(tagName) : void 0;
2396
2396
  const isHTML = def == null ? void 0 : def.html;
2397
2397
  const importPath = !isHTML && resolveTagImport(this.#filename, def);
2398
- const isMissing = def && !isHTML && !importPath;
2399
2398
  let tagIdentifier;
2400
2399
  let isTemplate = false;
2401
- if (!isHTML || !isMissing) {
2400
+ if (!isHTML && (!def || importPath)) {
2402
2401
  const tagId = this.#ensureTagId(tag);
2403
2402
  tagIdentifier = varLocal("tag_" + tagId);
2404
2403
  this.#extractor.write(`const ${tagIdentifier} = (
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@marko/language-tools",
3
3
  "description": "Marko Language Tools",
4
- "version": "2.5.10",
4
+ "version": "2.5.11",
5
5
  "bugs": "https://github.com/marko-js/language-server/issues/new?template=Bug_report.md",
6
6
  "peerDependencies": {
7
7
  "@marko/compiler": "^5.28.4"