pear-bundle
v1.0.0
Published
Generate a bundle from a Pear application entrypoint
Downloads
375
Readme
pear-bundle
Generate a bundle from a Pear application entrypoint
Per bare-bundle bundles.
Usage
import bundle from 'pear-bundle'const opts = {
cache = false,
prebuilds: 'path/to/prebuilds',
entry: '/boot.js',
builtins = []
}
const packed = await bundle(opts)
console.log(packed.bundle) // bundle buffer
console.log(packed.prebuilds) // prebuilds MapAll options are per pear-pack options (except opts.target),
and with opts.cache.
opts.cache
Set to true to cache the bundle on system disk instead of generating each time.
License
Apache-2.0
