A Vite plugin that transpiles DLight JSX/TSX components with inline CSS-in-JS syntax, version 0.9.27. It is designed for the DLight framework (dlight.js) and provides easy CSS handling via babel transpilation. This plugin is part of the DLight ecosystem and offers seamless integration with Vite's build pipeline. The release cadence appears to be irregular, and it ships TypeScript types. Key differentiators: optimized for DLight's reactive rendering and CSS scoping, minimal configuration required. Currently in early development (pre 1.0).
npm install vite-plugin-dlight-easy-cssNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Demonstrates configuring the Vite plugin in vite.config.ts and using inline CSS in a DLight component.
Pin to exact version and review changelog on updates.
Use .style() with JavaScript object for CSS properties.
Order plugins: [VitePluginDLightEasyCSS(), /* other DLight plugins */]
npm install -D @babel/core
Use // @ts-ignore as last resort.
npm install vite-plugin-dlight-easy-css
Use import statement instead of require().
Change `.css('color: red')` to `.style({ color: 'red' })`Ensure VitePluginDLightEasyCSS is added to plugins array in vite.config.