{"library":"oc-vite-compiler","title":"OC Vite Compiler","description":"OC-Vite-Compiler is an OC (OpenComponents) module that compiles view and server code using Vite. Version 6.0.0 is the latest stable release, with a focus on providing fast builds and HMR for OC components. It integrates Vite's bundling capabilities into the OC ecosystem, enabling ESM and TypeScript support. The package ships TypeScript types and is part of the OpenComponents toolchain. Release cadence is sporadic, tied to OC updates. Key differentiator: leverages Vite for modern, fast development experience versus traditional webpack-based compilers.","language":"javascript","status":"active","last_verified":"Mon Apr 27","install":{"commands":["npm install oc-vite-compiler"],"cli":null},"imports":["import compiler from 'oc-vite-compiler'","import { ViteCompiler } from 'oc-vite-compiler'","import type { ViteCompilerOptions } from 'oc-vite-compiler'"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"import compiler from 'oc-vite-compiler';\n\nconst options = {\n  componentPath: './src/components/my-component',\n  server: './src/server.js',\n  view: './src/view.js',\n  viteConfig: {}\n};\n\nexport async function compileComponent() {\n  try {\n    const result = await compiler(options);\n    console.log('Compiled successfully:', result.outputPath);\n  } catch (error) {\n    console.error('Compilation failed:', error);\n  }\n}\n\ncompileComponent();","lang":"typescript","description":"Demonstrates compiling an OC component using oc-vite-compiler with options for component path, server, and view files.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}