Compiler for the React template in the OpenComponents (oc) ecosystem. Version 11.0.0 provides a Webpack-based build pipeline to transform React components into deployable OC packages. Primarily used internally by the oc-registry build process. It compiles JSX, handles asset bundling, and produces server-side renderable bundles. Releases follow the OpenComponents monorepo cadence. Differs from other React build tools by being tightly coupled to the OC registry workflow.
npm install oc-template-react-compilerNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Creates a compiler instance for a React component and runs the build.
Upgrade to React 17 or 18, or pin to version 9.x if needed.
Pass configuration directly as shown in quickstart.
Ensure webpack 5 is installed as a devDependency.
npm install oc-template-react
Use: import { Compiler } from 'oc-template-react-compiler'; const compiler = new Compiler(...);Ensure babel-loader with @babel/preset-react is in webpack config.