Compiler module for the Svelte OC (OpenComponents) template, version 3.0.0. Supports compiling Svelte components for use with the OpenComponents ecosystem. Requires `oc-template-svelte` and the OC framework. Differentiates from other Svelte compilers by integrating with OC's component lifecycle. Release cadence is tied to the OpenComponents monorepo; this package currently depends on `oc-template-svelte` v2.x.
npm install oc-template-svelte-compilerNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows basic usage of the compiler to compile a Svelte component for OC, using the required template and OC registry options.
Upgrade Node.js to v18+ and OC to v3.0+.
Always provide `componentName` in options object.
Use dynamic `import()` if needed, or migrate to ESM.
Install `oc-template-svelte` as a dependency.
Run 'npm install oc-template-svelte'.
Use named import: import { compile } from 'oc-template-svelte-compiler'.Include a valid `componentName` in options.