import { rollup } from "https://deno.land/x/snel@v0.7.1/imports/drollup.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.
Parameters
options: RollupOptions
Returns
Promise<RollupBuild>