In function.js there is a try/catch around a require statement. Browserify will find that require statement and still include esprima in the browser bundle.
Using browserify, you can use the "browser" field like this...
"browser": {
"esprima": false
},
...to make require('esprima') return an empty object in the browser.
In function.js there is a try/catch around a require statement. Browserify will find that require statement and still include esprima in the browser bundle.
Using browserify, you can use the "browser" field like this...
...to make
require('esprima')return an empty object in the browser.