A compiler that translates Live Elements (.lv) files into JavaScript modules. Version 0.1.20 is the current stable release, with an undocumented release cadence. It resolves dependencies and handles imports automatically. Compared to other transpilers, it is specific to Live Elements, providing options for base components, implicit types, and output extensions. Targeted at the Live Elements ecosystem for building web components.
npm install live-elements-js-compilerNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to compile a Live Elements .lv file into a JavaScript module using the compile function with options and a callback.
Update callback parameter order to (result, err).
Prepare to import from subpaths if needed in v1.
Ensure all options parameters are explicitly defined or set to empty strings.
Set outputExtension explicitly to 'js' if targeting CommonJS.
Use path.resolve() to convert relative paths to absolute.
Run 'npm install live-elements-js-compiler' and ensure import is correct.
Use 'import { compile }' instead of 'import compile'.Provide an absolute path to the .lv file.
No dependency data recorded yet.