Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

bit-bundler-browserpack

MiguelCastillo11MIT4.0.2

Bit bundler for JavaScript assets

bit-bundler, bit-bundler-plugin

readme

bit-bundler-browserpack

Greenkeeper badge

bit-bundler bundler provider to create JavaScript bundles. This bundler provider uses browser-pack as the backing bundle generator.

Options

  • sourceMap { boolean } (true) - Enables/disables the generation of inline source maps.
  • umd { string } - String name for the UMD module to be exported. UMD is a configuration that allows bundles to run in node.js, requirejs, and traditional script tags. If running in the browser, provide this setting for maximum compatibility. The name you provide is exported so that other modules can consume the bundle. This is some literature on it.
  • printInfo { boolean } (false) - Flag to print out to console basic information about the modules in each generated bundle.
  • exportNames { boolean } (false) - Flag to export modules by name rather than ID if the modules are not relative names. The only modules that are exported by name are root modules.

All options that browser-pack takes can be forwarded in a browserPack configuration object. However, this should not really be needed for the general case as all options are automatically computed for you by this module.

{
  umd: 'mysweetmodule',
  browserPack: {
    raw: true
  }
}

License

Licensed under MIT