We really, really need to stop transpiling classes. I'm getting screen burn-in for classCallCheck()
-
-
-
Replying to @g3plane @_developit
Or TypeScript, which unlike Bublé is actively maintained
Its classes aren't quite as compact as Bublé's but they're a hell of a lot smaller than Babel's. Of course, the real answer is to have separate modern/legacy builds...1 reply 0 retweets 15 likes -
We’re trying delivering different bundles based on UA. But to be fare combine browserlist + cache invalidation for each browser is not worth
1 reply 0 retweets 0 likes -
Replying to @ideabile @Rich_Harris and
is there a library that helps deliver modern/legacy bundles based on UA? does legacy mainly mean IE?
1 reply 0 retweets 0 likes -
Let me know if you find one?
1 reply 0 retweets 0 likes -
Replying to @NorbertdeLangen @ideabile and
also i’m reminded by my colleagues that UA sniffing is still a bad idea vs feature detection...
https://developer.mozilla.org/en-US/docs/Web/HTTP/Browser_detection_using_the_user_agent …1 reply 0 retweets 1 like -
Replying to @swyx @NorbertdeLangen and
Well... the feature detection that you pass to Babel or TS, comes from browserlist which returns browser and v. How you link with ur bundle?
1 reply 0 retweets 0 likes -
couple of options: do the module/nomodule dance, or try to eval something like an async function. Sapper (https://sapper.svelte.technology/ ) does the latter; build with --legacy and it generates an IE-friendly bundle in addition to the modern one, and loads the correct one based on support
3 replies 1 retweet 20 likes
This is great! Is there documentation on this specifically (other than this tweet)?
-
-
I thought there was but it appears to be undocumented
0 replies 0 retweets 1 likeThanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
Replying to @mathias @Rich_Harris and
This thread start to have some solutions, maybe
@addyosmani has more suggestions regarding this?0 replies 0 retweets 0 likesThanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.
JavaScript, HTML, CSS, HTTP, performance, security, Bash, Unicode, i18n, macOS.