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
Mochify relies on PhantomJS, which is more or less deprecated and currently doesn't support ES2015 syntax, which makes it somewhat challenging to reduce reliance on utility libraries like Underscore or Lodash. I discovered this while attempting to remove Underscore in #29 (see issue #27) -- while the merged solution does reduce overall size, it doesn't feel quite like the right fix.
There are a few ways to potentially circumvent the PhantomJS issue, but I think a good, long-lasting solution would be to remove Mochify entirely, replacing it with standalone mocha running Headless chrome, maybe using Puppeteer.
Alternatively, it might be worth submitting a PR to solve mantoni/mochify.js#159, as that would this issue for you and other uses of the library as well.
Mochify relies on PhantomJS, which is more or less deprecated and currently doesn't support ES2015 syntax, which makes it somewhat challenging to reduce reliance on utility libraries like Underscore or Lodash. I discovered this while attempting to remove Underscore in #29 (see issue #27) -- while the merged solution does reduce overall size, it doesn't feel quite like the right fix.
There are a few ways to potentially circumvent the PhantomJS issue, but I think a good, long-lasting solution would be to remove Mochify entirely, replacing it with standalone mocha running Headless chrome, maybe using Puppeteer.
Alternatively, it might be worth submitting a PR to solve mantoni/mochify.js#159, as that would this issue for you and other uses of the library as well.