brunch / deppack

Extract node modules to browser.
MIT License
4 stars 13 forks source link

Make node-resolve work with non-js requires with an extension #21

Closed goshacmd closed 8 years ago

goshacmd commented 8 years ago

GH-30 made handling of relative requires way simpler, by relying on node-resolve, but it also intorduced a regression when ./Something will fail if Something.js doesn't exist -- even if Something.coffee does. This commit aims to fix that by telling node-resolve about all the extensions we know the app code can contain.