fix(javascript): centralize module syntax and separate erased type dependencies

This commit is contained in:
morluto
2026-10-13 14:39:06 +08:00
parent e1cd292aa6
commit 1b953021ea
18 changed files with 513 additions and 134 deletions
@@ -0,0 +1,6 @@
/** Relative module syntax differs from an arbitrary dot-prefixed filename. */
export const isRelativeJavaScriptModuleSpecifier = (value: string): boolean =>
value === "." ||
value === ".." ||
value.startsWith("./") ||
value.startsWith("../");