bundle-collapser icon indicating copy to clipboard operation
bundle-collapser copied to clipboard

convert bundle paths to IDs to save bytes in browserify bundles

Results 11 bundle-collapser issues
Sort by recently updated
recently updated
newest added

## test.js ```js const a = { ...{ a: 1 } } ``` ## bundle command ```bash browserify -p bundle-collapser/plugin test.js ``` ## output ``` SyntaxError: Unexpected token (1:12) at...

Say I have a node module `a` that has `require("../compiled/templates");` along with a node module `b` that has its own `require("../compiled/templates");` - both pointing to their own respective `templates.js` file....

Hi!, I can't make to work this module with the option --standalone of browserify. I initially use: ``` browserify index.js --standalone customerInsight > build/client.js ``` In this case, I can...

I have code that look like this: ``` ( ... ) var collapse = require('bundle-collapser'); ( ... ) var b = browserify({ entries: admin_app_src, cache: {}, packageCache: {}, plugin: [watchify]...

Applying bundle-collapser to my bundle causes this error when run. Any idea why this could be happening? It happens via CLI and in Gulp. `browserify -p bundle-collapser/plugin ./src/js/interface.js > ./dist/test.js...

I’m using [Nunjucksify](https://github.com/rotundasoftware/nunjucksify) and I have the problem described in this [issue](https://github.com/rotundasoftware/nunjucksify/issues/11). Since I believe plugin runs after all transforms are applied, it can’t know about additional created requires -...

Hey, once I start using bundle-collapser, it seems as if `var io = require('socket.io-client')` doesn't get resolved correctly. In my case it gets assigned `530` by bundle-collapser, but when running...

What is the relationship between this and intreq? Does this replace intreq? It would be good to link to this from that readme, and from the browserify readme in fact......