Fix "ReferenceError: module is not defined" error when loading the game
Closed this issue · 0 comments
evktalo commented
Unit tests use node, and the testable classes (ChildProcess currently) use module.exports at the end to let them be exposed to tests.
In browser, there is now an error about module not being defined.
Would like to get rid of that error showing up. The solution could vary in scope, ranging from proper refactoring to implementing the whole app in node (with browserify to compile the whole thing as a browser-runnable bundle), to just silencing that error for now.