How to write a NodeJS Package for ES5 & ES6?
Right now I face a dilemma. My package, ReplAPI.it, is being used in scenarios which need an ES5 package and scenarios which need an ES6 package. I wrote my code adhering to ES6 standards. Is there any way to make it work in NodeJS CommonJS and NodeJS ModuleJS.
Also bonus is there a way to make NodeJS packages except for the web (<script src="...">)?
1) Most ES5 features are compatible with ES6
2) Not a package creator myself, but if you look up for hybrid npm packages there should be some guides.
3) Use rawgit.
@realTronsi yep still here (Replit doesn't send notifications immediately after a ping lmao)
I've kinda been on and off myself. I made a few games and that got popular fast. I was completely ignored during the Kaboom Game Jam sometime last month even though I had the most popular game. I got really into Overwatch for some reason. I've undertook several huge projects (like revamping my portfolio). And I'm cramming for AP tests in a week :P.
wait i don't get it what
@RayhanADev Oh nice, yeah I pinged because there were so many msgs from the april fools repl and I thought I got covered up.
Which AP classes are you taking?