Closed justinbmeyer closed 6 years ago
How do you know it's due to that code? The error you posted points to lib/zone.js.
@matthewp I forgot to paste the whole warning. Updated to include the 1st line.
Trying to figure out if there is a better way to fix. At least with steal require
is not a global, it's part of an IIFE argument.
If
can-zone
is imported by webpack, it provides the following warning:Which is due to this code:
I think we might need to fool webpack better when accessing
require
. The following works:Couldn't hurt to use
can-globals
for getting theGLOBAL
(I copied it's code above anyway).