Change how the library is exported
This commit makes the library define the |PEG| global variable (for browser export) and possibly assign it into |module.exports| (for Node.js export) later. The |module.exports| assignment is done *outside* the main library |function| statement. The big idea behind this is to make copy & paste inclusion of the library into another code easier -- one just needs to strip the last three lines.redux
parent
d35b21e9b2
commit
7f2dc850e0
Loading…
Reference in New Issue