MCPcopy Index your code
hub / github.com/tinyplex/tinybase / transformSolidJsx

Function transformSolidJsx

test/unit/documentation.test.ts:302–310  ·  view source on GitHub ↗
(source: string, loader: 'jsx' | 'tsx')

Source from the content-addressed store, hash-verified

300 source.includes('from "tinybase/ui-svelte');
301
302const transformSolidJsx = (source: string, loader: 'jsx' | 'tsx'): string =>
303 babelTransformSync(
304 transformSync(source, {
305 format: 'esm',
306 jsx: 'preserve',
307 loader,
308 }).code,
309 {presets: [['solid', {delegateEvents: false}]]},
310 )?.code ?? '';
311
312const prepareRunnableCode = (source: string, replaceImports: boolean): string =>
313 (replaceImports ? replaceRunnableImports(source) : source)

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…