Using Require with commons.js
Posted: Fri Apr 29, 2022 11:03 am
Inside our framework we are storing JavaScript code in the commons.js file.
However the code is getting lengthy and I would like to break it up into multiple files.
Can you provide example JS for how to include other JavaScript files.
How do I require/import them into commons.js and do I have to put anything specific inside the "imported" files?
Thanks
However the code is getting lengthy and I would like to break it up into multiple files.
Can you provide example JS for how to include other JavaScript files.
How do I require/import them into commons.js and do I have to put anything specific inside the "imported" files?
Thanks