Vite plugin that transpiles DLight.js JSX-like syntax for server-side rendering, enabling DLight components to be used in Vite-based projects. Current stable version is 0.9.21, with weekly releases. Integrates seamlessly with Vite's build pipeline, handling DLight template compilation and HMR. Key differentiator: provides server-side rendering support for DLight, complementing the client-side @dl-light/dlight plugin.
npm install vite-plugin-dlight-serverNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to add the DLight server plugin and client plugin to a Vite config.
Upgrade to Vite 4 or 5.
Update to Node 16 or higher.
Reorder plugins: vitePluginDLightServer() first, then dlight().
Replace server: true with ssr: true in plugin options.
Upgrade Vite: npm install vite@latest
Use ES6 import: import vitePluginDLightServer from 'vite-plugin-dlight-server'
Install the package: npm install @dl-light/dlight