# Module hooks
# tryTsTsxJsxModuleHook
const tryTsTsxJsxModuleHook: ModuleHook
Resolver hook for module.registerHooks
that looks for
.{ts,tsx,jsx}
when .js
is not found.
# compileJsxTsxModuleHook
function compileJsxTsxModuleHook(
fn: (src: string, url: string) => string
): ModuleHook
Loader hook for JSX/JSX files which just passes the source code and file URL to your function to compile.
# jsxRuntimeModuleHook
function jsxRuntimeModuleHook(jsx: string): ModuleHook
Remaps the react/jsx-runtime
import to the given module specifier.
# liveTree.enableImportsModuleHook
Docs for this are on the LiveTree page.