michaelficarra / commonjs-everywhere

:rainbow: minimal CommonJS browser bundler with aliasing, extensibility, and source maps
BSD 3-Clause "New" or "Revised" License
158 stars 21 forks source link

compile require paths to some short unique identifer #30

Closed michaelficarra closed 11 years ago

michaelficarra commented 11 years ago

It'll make the builds a little bit smaller, though less readable. But considering the overhead in the bundle is already so small, it's significant enough.

michaelficarra commented 11 years ago

Just tried implementing this, and it seems we can't do this without breaking __filename and __dirname. Closing as a wontfix.