UNPKG

@roots/sage

Version:

@roots/sage preset for @roots/bud

23 lines (22 loc) 732 B
import type { Bud } from '@roots/bud-framework'; import type { Compilation, Compiler, WebpackPluginInstance } from '@roots/bud-framework/config'; import { Extension } from '@roots/bud-framework/extension'; /** * Acorn adapter * * @see {@link https://github.com/roots/acorn} */ export default class Acorn extends Extension implements WebpackPluginInstance { /** * Writes hmr.json for use with {@link https://github.com/roots/acorn/} */ addAcornHotManifest(compiler: Compiler, compilation: Compilation): () => void; /** * {@link WebpackPluginInstance.apply} */ apply(compiler: Compiler): boolean; /** * {@link Extension.buildBefore} */ buildBefore(bud: Bud): Promise<void>; }