Pellentesque nec neque ex. Aliquam at quam vitae lacus convallis pulvinar. Mauris vitae ullamcorper lacus. Cras nisi dui, faucibus non dolor quis, volutpat euismod massa. Donec et pulvinar erat.
Cofounded Host Collective (DiscountASP.net). Cofounded Player Axis (Social Gaming). Computer Scientist and Technology Evangelist with 20+ years of experience with JavaScript!
Pellentesque nec neque ex. Aliquam at quam vitae lacus convallis pulvinar. Mauris vitae ullamcorper lacus. Cras nisi dui, faucibus non dolor quis, volutpat euismod massa. Donec et pulvinar erat.
I made a script called mojifier that converts your module into a single object with everything included / proper namespaces by iterating the directories/files.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Joel, I would like to point out that a main.js does not prevent you from importing only the functions you need. It doesn't matter.
First of all, import statements will still work.
Secondly you can also require selectively only the stuff you need, exactly like import.
The design decision to create every function as it's own import was made to remove a footgun.
The footgun removed is the ability to import the entire library when you only need a few functions.
This way, the output bundle sir is only as big as the functions you import.
So MojiScript will have a microscopic footprint in your final output bundle because it is no longer possible to import the entire bundle.
I made a script called mojifier that converts your module into a single object with everything included / proper namespaces by iterating the directories/files.