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
Roman Artemev [JB]
07/16/2018, 8:20 PM
Hi there, seems like you need to use UMD
j
jw
07/16/2018, 8:42 PM
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.