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
{{ message }}
This repository has been archived by the owner on Mar 15, 2021. It is now read-only.
I just wanted to let you know an issue I ran into working to add foounit browser tests to EpicEditor - which relies on Marked.
Seems like passing a param with the name module will break packages that rely on that keyword to check environment. More and more packages are doing things like this to try to be flexible enough to run in multiple contexts. In this case, it looks like Marked is added to the incorrect - or at least different/unexpected - scope.
Example:
(function(){if(typeofmodule!=='undefined'){module.exports=marked;}else{this.marked=marked;}}).call(this);(function(window,undefined){// Some other module})(window);
I couldn't see where this was being used so I just removed references to module and exports as a temporary fix.
Let me know if I am missing something here. Maybe there is another way to wrap the code so that it doesn't cause conflicts, or maybe we should be setting up differently on our end?
Thanks.
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Hey man. Loving foounit so far!
I just wanted to let you know an issue I ran into working to add foounit browser tests to EpicEditor - which relies on Marked.
Seems like passing a param with the name
module
will break packages that rely on that keyword to check environment. More and more packages are doing things like this to try to be flexible enough to run in multiple contexts. In this case, it looks like Marked is added to the incorrect - or at least different/unexpected - scope.Example:
foounit-browser.js
I couldn't see where this was being used so I just removed references to
module
andexports
as a temporary fix.Let me know if I am missing something here. Maybe there is another way to wrap the code so that it doesn't cause conflicts, or maybe we should be setting up differently on our end?
Thanks.
The text was updated successfully, but these errors were encountered: