Comments (2)
Hello! Thanks for this suggestion. I'm currently using ES5 so I can support IE11 #57. Zdog v2 will likely be re-written in ES6+.
As for rollup & transpiling. See my comment #22 (comment)
from zdog.
Hi, thanks for reply.
I understand your argument but I don't agree. You can still get proper and full IE11 support with transpilation presets and polyfills (although I think we should ditch IE11 but that's more of a personal opinion). You won't have to debug the transpiled code and you'll have a lot of gains from using a bundler. rollup
for instance doesn't clutter your bundle like certain other bundlers, code becomes pretty clean and neat.
For instance, producing three different bundles (.umd, .cjs, .esm) will give you bundles that are runnable in the browser, node and for other bundlers. The latter will let us developers who are using bundlers to take advantage of tree shaking, proper import/exports, not having to pollute with global variables and much more. Also for users that are stripping kilobytes this is necessary as importing a complete library without tree shaking just brings unused code.
If you're still not sold on the idea of having a bundler transpiling the code to the correct targets allow me to show what can be done. Even if you perhaps wouldn't like the idea yourself, I assure you that the users of this library would appreciate it (especially ES modules (.esm)) and it should therefore be considered (I would certainly love it). I can also see that there's a lot of duplicate code in the source code that could be taken care of using ES6/bundlers so you would end up with a reduced library size.
Hope you are open to this, would be fun and interesting.
If you have any other questions let me know 😊
Thanks
BR
from zdog.
Related Issues (20)
- Migrate codebase to ES8/TypeScript? HOT 8
- Element overlay late HOT 1
- Would wasm make it any faster? HOT 3
- 3D shape properties are not updated HOT 3
- Line across inside cylinder when fill is false HOT 2
- scene = new Zdog.Anchor() - Memory Leak? HOT 1
- why do shapes vanish when on a box HOT 1
- how animate a shape with a path HOT 1
- using for-loop and variables in path command HOT 1
- camera move(feature request) HOT 2
- Stroke Dasharray [feature request]
- Better documentation of normalizeRotate()
- Library
- how to import module of Zdog?
- Documentation website seems to be down
- Hollow Cone doesn't render in all rotations
- add light source
- [feature request] SVG lighting
- smoke effects cause model flickering HOT 3
- AddTo can't change after creation of Zdog element HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from zdog.