Skip to main content
Go to Latest
class ScriptLoader
implements [frugal.Loader]<Generated>
import { ScriptLoader } from "https://deno.land/x/frugal@0.2.1/docs/dep/frugal/loader_script.ts";

Script loader, able to output bundles from all script modules in the pages dependency graph

Constructors

new
ScriptLoader(unnamed 0: Config)

Properties

name: string

Methods

generate(params: frugal.GenerateParams)

A function called after all loader are done generating.

Since esbuild run as a background service and is not able to stop when deno stops, we must manually stop the background service before exiting deno.

test(url: URL)

A function checking if a given url should be handled by this loader.

A module in the dependency graph must be handled by this loader if it matches the rule for any of the defined bundles.