MCPcopy Create free account
hub / github.com/Swatinem/rollup-plugin-dts / decodeResolvedModule

Function decodeResolvedModule

src/transform/ModuleDeclarationFixer.ts:16–18  ·  view source on GitHub ↗

Decode a resolved module marker comment from text. Returns the absolute path, or null if not found.

(text: string)

Source from the content-addressed store, hash-verified

14
15/** Decode a resolved module marker comment from text. Returns the absolute path, or null if not found. */
16function decodeResolvedModule(text: string) {
17 return text.match(RESOLVED_MODULE_COMMENT)?.[1] ?? null;
18}
19
20/** Strip the resolved module marker comment. */
21function stripResolvedModuleComment(text: string) {

Callers 1

fixMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…