UNPKG

beyond

Version:

The Full Stack Universal Typescript Framework

24 lines (19 loc) 583 B
/** * The registry is created in lib/engine/process/core/index.js, * and exposed globally in lib/engine/process/core/global/index.js */ module.exports = new class { #created = false; #registries; get bundles() { return this.#registries?.bundles; } get processors() { return this.#registries?.processors; } create(config) { if (this.#created) throw new Error('Bundler registries already created'); this.#created = true; this.#registries = new (require('./registries'))(config); } }