RaveJS / rave

Zero-configuration application bootstrap and development
278 stars 8 forks source link

Fails to load browserified bundle from node_modules #52

Open briancavalier opened 10 years ago

briancavalier commented 10 years ago

This is another weird situation. I'm using when.js's es6 Promise shim in the browser and am using npm rather than bower. So, Rave thinks the already-browserified Promise shim is a CommonJS module, scans the shim's source text for require statements and tries to load the module names it finds. The shim is self-contained so all those modules are already built into it by browserify.

The simple workaround for me in the short term is to switch to bower, but it'd be great to find a way to make this work.

briancavalier commented 10 years ago

Just to confirm: I switched to bower and it Just Worked. Rave loaded everything correctly.