Closed rejas closed 7 years ago
A lot of people simply include the script in their static HTML sites outside of any module management schemes. If we include this line it's going to generate an error on the page. That might not matter or break anything, but it kind of bothers me :)
Can you change it to a conditional to make sure the module
object exists first?
You're right. I added some code to check for that
Added a module.exports line so that I can use it in my webpack project.