For whatever reason, browserify does not allow browser remapping for a custom named main file and it ends up including both the server version and the browser version in the same bundle. Using the default index.js file for a main file in a directory seems to solve the problem.
For whatever reason, browserify does not allow browser remapping for a custom named main file and it ends up including both the server version and the browser version in the same bundle. Using the default
index.js
file for a main file in a directory seems to solve the problem.