Skip to main content
Module

x/drollup/mod.ts>rollup

Next-generation ES module bundler ported for Deno
Latest
function rollup
Re-export
import { rollup } from "https://deno.land/x/drollup@2.58.0%2B0.20.0/mod.ts";

rollup

The rollup function receives an input options object as parameter and returns a Promise that resolves to a bundle object with various properties and methods as shown below. During this step, Rollup will build the module graph and perform tree-shaking, but will not generate any output.

On a bundle object, you can call bundle.generate multiple times with different output options objects to generate different bundles in-memory. If you directly want to write them to disk, use bundle.write instead.

Once you're finished with the bundle object, you should call bundle.close(), which will let plugins clean up their external processes or services via the closeBundle hook.