@marko/language-tools 2.5.26 → 2.5.27
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.
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { TaglibLookup } from "@marko/babel-utils";
|
|
1
|
+
import type { TaglibLookup } from "@marko/compiler/babel-utils";
|
|
2
2
|
import type TS from "typescript/lib/tsserverlibrary";
|
|
3
3
|
import { type Parsed } from "../../parser";
|
|
4
4
|
import type { Meta } from "../../util/project";
|
package/dist/index.js
CHANGED
|
@@ -2458,11 +2458,11 @@ constructor(_?: Return) {}
|
|
|
2458
2458
|
const tagName = tag.nameText;
|
|
2459
2459
|
const renderId = this.#getRenderId(tag);
|
|
2460
2460
|
const def = tagName ? this.#lookup.getTag(tagName) : void 0;
|
|
2461
|
-
const
|
|
2462
|
-
const
|
|
2461
|
+
const importPath = resolveTagImport(this.#filename, def);
|
|
2462
|
+
const isHTML = !importPath && (def == null ? void 0 : def.html);
|
|
2463
2463
|
let tagIdentifier;
|
|
2464
2464
|
let isTemplate = false;
|
|
2465
|
-
if (!
|
|
2465
|
+
if (!def || importPath) {
|
|
2466
2466
|
const isIdentifier = tagName && REG_TAG_NAME_IDENTIFIER.test(tagName);
|
|
2467
2467
|
const isMarkoFile = importPath == null ? void 0 : importPath.endsWith(".marko");
|
|
2468
2468
|
if (isIdentifier || isMarkoFile || !importPath) {
|
package/dist/index.mjs
CHANGED
|
@@ -2421,11 +2421,11 @@ constructor(_?: Return) {}
|
|
|
2421
2421
|
const tagName = tag.nameText;
|
|
2422
2422
|
const renderId = this.#getRenderId(tag);
|
|
2423
2423
|
const def = tagName ? this.#lookup.getTag(tagName) : void 0;
|
|
2424
|
-
const
|
|
2425
|
-
const
|
|
2424
|
+
const importPath = resolveTagImport(this.#filename, def);
|
|
2425
|
+
const isHTML = !importPath && (def == null ? void 0 : def.html);
|
|
2426
2426
|
let tagIdentifier;
|
|
2427
2427
|
let isTemplate = false;
|
|
2428
|
-
if (!
|
|
2428
|
+
if (!def || importPath) {
|
|
2429
2429
|
const isIdentifier = tagName && REG_TAG_NAME_IDENTIFIER.test(tagName);
|
|
2430
2430
|
const isMarkoFile = importPath == null ? void 0 : importPath.endsWith(".marko");
|
|
2431
2431
|
if (isIdentifier || isMarkoFile || !importPath) {
|
package/dist/util/project.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { TaglibLookup } from "@marko/babel-utils";
|
|
2
1
|
import type * as Compiler from "@marko/compiler";
|
|
2
|
+
import type { TaglibLookup } from "@marko/compiler/babel-utils";
|
|
3
3
|
import type TS from "typescript/lib/tsserverlibrary";
|
|
4
4
|
import { ScriptLang } from "../extractors/script";
|
|
5
5
|
export interface Meta {
|
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.
|
|
4
|
+
"version": "2.5.27",
|
|
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"
|