UNPKG

@roots/bud-build

Version:

bud.js core module

31 lines (30 loc) 632 B
import Registrable from '@roots/bud-build/helpers/registrable'; /** * Bud Loader */ class Loader extends Registrable { _app; /** * Factory returning the loader path */ src; /** * Class constructor * * @param src - Either a factory returning a string or a literal string */ constructor(_app, src, definition) { super(_app); this._app = _app; this._app = _app; this.src = definition ?? src ?? ``; } getSrc() { return this.src; } setSrc(src) { this.src = src; return this; } } export { Loader as default };