@litsx/babel-preset-litsx
v0.5.0
Published
Canonical native Babel preset for LitSX-authored source
Maintainers
Readme
@litsx/babel-preset-litsx
Canonical native Babel preset for LitSX-authored source.
Use this preset when you want the supported LitSX Babel pipeline directly, without going through @litsx/compiler.
It wires the native lowering stages in the supported order, then optionally runs the JSX-to-Lit-template pass.
Usage
{
"presets": ["@litsx/babel-preset-litsx"]
}Options
jsxTemplate?: booleanjsxTemplateOptions?: objectdefaultDomMode?: "shadow" | "light"typeResolutionMode?: "auto" | "in-memory"inMemoryFiles?: Record<string, string>transformLitsx?: object
transformLitsx is merged on top of the native transform options when you need to override the underlying component-lowering stage directly.
Notes
- This is the canonical raw-Babel entrypoint for native LitSX.
- For programmatic compilation with parser setup and sourcemap chaining, prefer
@litsx/compiler. - This preset owns the supported native plugin order.
