Let's say I have the following function:const helloWorld = () => { return "Hello World!" }I want to export the function as UMD, Node (CommonJS) and Browser Global. I found UMDJS but I'm not sure what code to use.Here's my question: What code do I add after declaring the helloWorld function?Side note: I already posted this to r/learnprogramming but I did not receive any comment.
Submitted March 17, 2019 at 02:32AM by Richienb
No comments:
Post a Comment