npm stats
  • Search
  • About
  • Repo
  • Sponsor
  • more
    • Search
    • About
    • Repo
    • Sponsor

Made by Antonio Ramirez

pear-bundle

1.0.0

@davidmarkclements

npmSnykSocket
Downloads:5
$ npm install pear-bundle
DailyWeeklyMonthlyYearly

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 Map

All 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