The strict reliance on the window object makes it impossible to run the parser in a context other than the browser where the window is made available automatically. By adding the context as an injected dependency, variable global will be assigned the window object on a browser and the module.exports object on node.
…text to allow for it to run server side
The strict reliance on the window object makes it impossible to run the parser in a context other than the browser where the window is made available automatically. By adding the context as an injected dependency, variable
global
will be assigned the window object on a browser and the module.exports object on node.