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

Don't die on import of unimplemented core modules #80

Closed jaredp closed 11 years ago

jaredp commented 11 years ago

Warn, but continue. In many cases, there may be a check to see if the user is in the browser and not use, say, fs if they are.

michaelficarra commented 11 years ago

For individual modules, you can use --alias fs: or options.aliases = {fs: null}. To ignore all resolution failures, you can use --ignore-missing. I'm happy with those options.

jaredp commented 11 years ago

facepalm thank you

michaelficarra commented 11 years ago

Hey, no problem. I think the documentation around aliasing can actually be improved a bit. I'll open an issue to do that.