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

Function replaceRunnableImports

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

Source from the content-addressed store, hash-verified

276};
277
278const replaceRunnableImports = (source: string): string =>
279 source.replace(
280 /import (type )?(.*?) from ['"](.*?)['"];/gms,
281 getRunnableImport,
282 );
283
284const isSolidSource = (source: string): boolean =>
285 source.includes(`from 'solid-js`) ||

Callers 2

prepareRunnableCodeFunction · 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…