Bun build plugin for transpiling DLight views and models (.view.js/.view.ts files) inside Bun's bundler. v0.5.0, stable, with TypeScript types. Integrates directly into Bun.build() using Babel under the hood, without requiring Vite or Astro. Supports custom file filters and DLight preset options. Designed for Bun + DLight projects that want minimal tooling overhead.
npm install bun-plugin-dlightNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to import and use dlightPlugin inside Bun.build() with custom filter and options.
Ensure you run the code with Bun and use Bun.build().
Avoid overriding Babel globally; rely on Bun's internal Babel.
Use import { dlightPlugin } from 'bun-plugin-dlight' instead of require().Use import { dlightPlugin } from 'bun-plugin-dlight'.Run 'bun add bun-plugin-dlight' to install.
Ensure you call dlightPlugin() as a function: plugins: [dlightPlugin()].