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.
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.
I have my browserify transform array configured in my project's
package.json
under thebrowserify.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 withNODE_ENV=production
my transform array frompackage.json
IS being processed (using "brfs" and "browserify-shim" and it's working fine), but ifNODE_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 ofNODE_ENV
.