Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/snel/imports/drollup.ts>watch

A Cybernetical framework for svelte applications in deno
Latest
function watch
Re-export
import { watch } from "https://deno.land/x/snel@v0.7.1/imports/drollup.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.