Y
Hacker News
new
|
ask
|
show
|
jobs
by
untog
3360 days ago
It's not just that - is JSX part of ES6? It isn't, but a lot of pre-Babel transpiled code uses it. So people would need to transpile to ES6 for distribution, then to ES5 when someone uses the library.
Messy.
1 comments
spankalee
3360 days ago
Don't distribute JSX, it's not JavaScript. Distribute what engines actually support.
link
untog
3359 days ago
A nice sentiment, but you could say the exact same thing about ES6. "What engines actually support" is a pretty fuzzy metric.
link