Compiles OC (OpenComponents) components using ES6 templates. Version 8.0.0 is the latest stable release. Part of the OpenComponents ecosystem, it provides a compiler for the oc-template-es6 template type. Differentiates from other template compilers by integrating specifically with OC's component architecture. Release cadence follows the OC ecosystem updates.
npm install oc-template-es6-compilerNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to import and use the compiler to compile an OC ES6 component template.
Replace require() with import statements.
Switch to default import: import compiler from 'oc-template-es6-compiler'.
Install oc as a peer dependency: npm install oc.
Use backtick literals for templates.
npm install oc-template-es6-compiler
Use default import: import compiler from 'oc-template-es6-compiler'
Ensure a valid component object is passed.
Use import syntax and ensure template is a string literal.