Skip to main content
The Deno 2 Release Candidate is here
Learn more
Go to Latest
function frugalPlugin
import { frugalPlugin } from "https://deno.land/x/frugal@0.2.1/packages/loader_script/frugalPlugin.ts";

Wrap denoPlugin (used to resolve file using deno rules), to allow running transformers on the loaded code.

These transformers allow for simple transformation, like replacing in a style module each rules with the generated classname. They are no meant for complex transformation.

Parameters

options: FrugalPluginOptions

Returns

esbuild.Plugin