@deno/rolldown-pluginA rolldown and rollup plugin for bundling Deno code.
Still early days and it will probably not work well for npm packages atm (ex.
ESM/CJS interop is not implemented).
You must run rolldown via Deno or this won’t work (running it via Node.js
would require this issue to
be resolved).
deno install npm:rolldown jsr:@deno/rolldown-pluginbundle task to your deno.json file:{
"tasks": {
"bundle": "rolldown -c"
}
// ...etc...
}
rolldown.config.js file and specify the Deno plugin. Configure theimport denoPlugin from "@deno/rolldown-plugin";
import { defineConfig } from "rolldown";
export default defineConfig({
input: "./main.js",
output: {
file: "bundle.js",
},
plugins: denoPlugin(),
});
deno task bundle.We use cookies
We use cookies to analyze traffic and improve your experience. You can accept or reject analytics cookies.