You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a JavaScript project where I wish to use loglevel without AMD or RequireJS. It works fine until I attempt to run my QUnit tests. The first problem is that QUnit declares it's own global log() method, the second is that QUnit also declares a global module object so loglevel goes into the RequireJS initialization path, finally when Qunit is loading <script> elements the window element is still undefined.
I've worked around both by modifying loglevel to explicitly rename the log and bind it to window...but this is definitely not a general solution that will work for others. Thoughts?
The text was updated successfully, but these errors were encountered:
I have a JavaScript project where I wish to use loglevel without AMD or RequireJS. It works fine until I attempt to run my QUnit tests. The first problem is that QUnit declares it's own global log() method, the second is that QUnit also declares a global module object so loglevel goes into the RequireJS initialization path, finally when Qunit is loading <script> elements the window element is still undefined.
I've worked around both by modifying loglevel to explicitly rename the log and bind it to window...but this is definitely not a general solution that will work for others. Thoughts?
The text was updated successfully, but these errors were encountered: