import { Plugin , PluginContext , SetupResult } from "@miniflare/shared" ; import { HTMLRewriter } from "./rewriter" ; export class HTMLRewriterPlugin extends Plugin { constructor ( ctx ) { super ( ctx ) ; } setup ( ) { return { globals : { HTMLRewriter } } ; } }