@tsrx/preact-runtime
v0.1.12
Published
Runtime helpers for TSRX Preact compiled output
Keywords
Readme
@tsrx/preact-runtime
Small runtime helper package for Preact components compiled from TSRX.
Applications that compile .tsrx files can continue installing @tsrx/preact
alone with the default runtimeImports: 'compiler' mode.
When a compiler or build integration uses runtimeImports: 'direct', the package
that owns the source or generated modules must declare this runtime as a direct
production dependency:
pnpm add @tsrx/preact-runtimeThe generated modules contain bare @tsrx/preact-runtime/* imports. A builder may
bundle those helpers or leave them external, but it does not provide this package;
the import must be resolvable during the build. Do not rely on dependency hoisting
or on @tsrx/preact installing the runtime transitively. Published component
libraries can keep the compiler and build integration in devDependencies while
declaring this package in dependencies.
Available subpaths:
@tsrx/preact-runtime/error-boundary@tsrx/preact-runtime/ref@tsrx/preact-runtime/iterable
