This repository has been archived by the owner on Feb 15, 2018. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[JENKINS-37006] Change bundle generation to map/import via bundle ent…
…ry rewriting (#5) * refactor bundle generation code from index.js to internal/bundlegen.js * bundle map entry stub rewriting * Revert use of --ignore browserify option ... no use to us ... because it puts in one bundle map entry for all ignored modules (when there are multiple of them), pointing require at the same map entry for them all ... that's no use to us as we need a stub for each module * Enhance require-stub-transform to do module pruning ... after mappings have left modules unused * No need to rewrite module source when bundle mpa entry already removed (unused) * throw new Error * don't apply imports on "--no-imports" * Added warning for duplicate require mappings * rename withExternalModuleMapping to import and deprcated withExternalModuleMapping * Add export dependency builder code .. still need to use that in the generated bundle * Use a handlebars template to transform/wrap the entry module * export-module.hbs handlebars template * dependency exports * Updates to reflect changes in js-modules to handle version ranges etc * Mode tweaks to get bundling working with new module loading * require-stub-transform cleanups * bundle as to use a ModuleSpec * Fixed dep export when no imports * Added postBundle listener support * Only allow global exports when there's one bundle being generated * Remerge Cliff's changes for .babelrc * Better import message * Remove dependency on window-handle * Added node_module to moduleDef * post transform map of fullPaths to ids * 36-beta25 * Readded the --full-paths option * nodeModulesRelPath function * Support for import aliases * Version updates for 0.0.37 release
- Loading branch information