Open multimeric opened 4 years ago
You're currently compiling this as a UMD (which is great), however the gulp UMD seems to output this:
;(function(root, factory) { if (typeof define === 'function' && define.amd) { define([], factory); } else if (typeof exports === 'object') { module.exports = factory(); } else { root.Puz = factory(); } }(this, function() { // Code }));
I suppose this works fine in the browser, since this is bound to window, but Chrome extensions don't seem to have a value for this, causing this entire module to fail to load.
this
window
Happening with puzjs@1.0.2.
puzjs@1.0.2
I think the solution relates to this: https://stackoverflow.com/a/34983495/2148718
You're currently compiling this as a UMD (which is great), however the gulp UMD seems to output this:
I suppose this works fine in the browser, since
this
is bound towindow
, but Chrome extensions don't seem to have a value forthis
, causing this entire module to fail to load.Happening with
puzjs@1.0.2
.