Closed koresar closed 7 years ago
IMO, this is a bad idea.
I think we can merge this for now and later we can try the approach through compat if needed. Question is, should we do something similar in @stamp/it
also?
Reminder: we're adding ~10 Megabytes of wasted code to the world with this PR, and the correct solution for Stampit users is to use a polyfill CDN.
It is not a library's responsibility to supply polyfills for application authors.
Objection filed. My work here is done. I wash my hands of this.
@FredyC good question... Let me think.
This removes the burden many people have. They don't need to polyfil anything now. With this PR Stampit core feature - dependencelessness (What a word!) is preserved. The resulting minified bundle increases by 100 bytes, the .min.gz bundle increases by 40 bytes. :)