How to use require() ?
Re: How to use require() ?
Not a very popular subforum, this is.
This looks revelant: https://blog.mozilla.org/addons/2013/01 ... re-syntax/
Example of usage: require('./lib/main')
I need to understand if it creates a new scope, and if it does, how to access everything in it from the browser console.
This looks revelant: https://blog.mozilla.org/addons/2013/01 ... re-syntax/
Example of usage: require('./lib/main')
I need to understand if it creates a new scope, and if it does, how to access everything in it from the browser console.