With duo/component, we get require available to all client-side modules, so it's close enough to a global that this config change prevents errors about missing require.
I'd rather do this than adding env: { node: true }, since that also includes other non-browser globals like global and process.
With duo/component, we get
require
available to all client-side modules, so it's close enough to a global that this config change prevents errors about missingrequire
.I'd rather do this than adding
env: { node: true }
, since that also includes other non-browser globals likeglobal
andprocess
./cc @ndhoule