MCPcopy Create free account
hub / github.com/tinyplex/tinybase / replaceSvelteImports

Function replaceSvelteImports

test/unit/documentation.test.ts:441–442  ·  view source on GitHub ↗
(source: string)

Source from the content-addressed store, hash-verified

439`;
440
441const replaceSvelteImports = (source: string): string =>
442 source.replace(/from ['"]svelte['"]/g, `from '${DOCS_SVELTE_SHIM_PATH}'`);
443
444const isSvelteModule = (path: string): boolean => /\.svelte\.[jt]s$/.test(path);
445

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…