~is there an easy way to reconcile the fact that s...
# javascript
j
is there an easy way to reconcile the fact that some APIs are available globally in the browser but require
require
in node? For example, I want to test code that uses
URL
.
Nevermind I'm an idiot and used a reeeeally old version of node.
r
Hi there, seems like you need to use UMD
j
For this specific example I'm just an idiot and am using a reeeeally old version of node. But I'll take a look at what UMD brings. I've been using commonjs for everything since that's what all the examples use and it doesn't seem to require anything special when I deploy to the web.