Skip to content

luludotdev/deno-rolldown-plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Deno Rolldown Plugin

This is mostly a port of the amazing Deno esbuild Plugin. Rolldown is currently pre-1.0 and this plugin has no production-ready guarantees.


Plugin to enable Deno resolution inside rolldown. It supports:

  • Alias mappings in deno.json
  • npm: specifier
  • jsr: specifier
  • http: and https: specifiers

Usage

  1. Install this package
  2. Import it and add to the rolldown config
import * as rolldown from "rolldown";
import { denoPlugin } from "@lulu/deno-rolldown-plugin";

await rolldown.build({
  input: ["./main.ts"],
  output: { file: "./main.bundle.js" },
  plugins: [denoPlugin()],
});

About

Resources

License

Stars

Watchers

Forks

Contributors