global is not defined
bertday opened this issue · comments
I'm using rollup-plugin-node-builtins
because I use the url
Node built-in and need to access it in the browser. So far I'm getting an error:
Uncaught ReferenceError: global is not defined
Here is a link to my compiled code which will take you to the line that's erroring:
https://gist.github.com/rbrtmrtn/1c4f47ffda1ecb76e0efb36509de65be#file-gistfile1-txt-L5701
Here is my Rollup config:
https://github.com/CityOfPhiladelphia/mapboard/blob/rollup/rollup.config.js
I've been digging into this for hours and can't figure out what's going wrong as to why global
is missing. Any insights would be much appreciated.
you need the node-globals plugin
plugin too, consult this project's readme for which of the modules need global installed.
Oh duh, I missed that somehow. Thanks @calvinmetcalf!