Skip to main content
Module

x/drollup/mod.ts>watch

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

watch

The watch function rebuilds your bundle when it detects that the individual modules have changed on disk. It is used internally when you run Rollup from the command line with the --watch flag. Note that when using watch mode via the JavaScript API, it is your responsibility to call event.result.close() in response to the BUNDLE_END event to allow plugins to clean up resources in the closeBundle hook.