bit-bundler-browserpack
v4.0.2
Published
Bit bundler for JavaScript assets
Downloads
19
Maintainers
Readme
bit-bundler-browserpack
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 theUMD
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