-
Notifications
You must be signed in to change notification settings - Fork 405
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rewrite build scripts and introduce a bundler #114
Comments
Yes, please. I've been trying to understand the latest landscape on modules across browser and node and i'm even more confused than before. I nowadays only code ES6 modules, no npm dependencies. I've found that node 14 has ES6 imports, but then require doesn't work. So if anyone can draft what the best, most straightforward way of delivering libraries is, i'll be very thankful. |
😆 Sure! Do you prefer one big PR or multiple smaller PRs? |
Three.js is using ES6 imports, they aren't actually node 14 imports, they work in node only thanks to the rollup bundler, the most common bundler used for libraries (webpack and parcel are more for projects). It is good practice to write a library using ES6 imports instead of If you want to read more: https://medium.com/webpack/webpack-and-rollup-the-same-but-different-a41ad427058c Hope I didn't confuse you even more. 😄 |
So was any progress made? |
Hey, I could contribute to this library and rewrite it using ES6 imports + rollup like three.js is doing.
This could be the "clean" way to fix #78.
Are you interested?
The text was updated successfully, but these errors were encountered: