mirror of
https://github.com/morluto/rea
synced 2026-10-26 14:25:49 -04:00
7 lines
252 B
TypeScript
7 lines
252 B
TypeScript
/** Relative module syntax differs from an arbitrary dot-prefixed filename. */
|
|
export const isRelativeJavaScriptModuleSpecifier = (value: string): boolean =>
|
|
value === "." ||
|
|
value === ".." ||
|
|
value.startsWith("./") ||
|
|
value.startsWith("../");
|