This patch adds many more test cases for extension combinations and includes a fix to check extensions as fallbacks so that the browser field keys and values behave more like the node require algorithm.
I think in a later release it would be a good idea to pass through opts.extensions but for now a hard-coded ['.js','.json'] array works.
This patch adds many more test cases for extension combinations and includes a fix to check extensions as fallbacks so that the browser field keys and values behave more like the node require algorithm.
I think in a later release it would be a good idea to pass through
opts.extensions
but for now a hard-coded['.js','.json']
array works.https://github.com/substack/node-browserify/issues/1435