ForbesLindesay / browserify-middleware

express middleware for browserify, done right
http://browserify.org
MIT License
381 stars 66 forks source link

Read package.json browserify.transform setting for default #64

Closed focusaurus closed 9 years ago

focusaurus commented 9 years ago

I have my browserify transform array configured in my project's package.json under the browserify.transform property path. I currently have to add code to copy those settings into browserify-middleware. I also found it somewhat surprising that it seems like with NODE_ENV=production my transform array from package.json IS being processed (using "brfs" and "browserify-shim" and it's working fine), but if NODE_ENV=development the transform array is NOT being processed and thus my code is breaking. It seems like whether you think package.json should be consulted or not, either way it should be consistent regardless of NODE_ENV.

focusaurus commented 9 years ago

Hmm, not seeing consistent behavior so I assume something about my local setup is confusing me. Closing and will reopen if have more solid due diligence.