Best of luck to JSX — of whom I do not predict will have the same success 😅
Also posted to Mastodon.
8 replies
@zachleat I was wondering about that! Type stripping could lead to packages such as htm (*) becoming more popular.
@rauschma and well deserved!!
@teleclimber
See https://satanacchio.hashnode.dev/everything-you-need-to-know-about-nodejs-type-stripping#heading-features-that-require-configurationRule of thumb: Type stripping only removes type-level syntax. What remains must be valid JS.
@zachleat lol what would JSX even be with --erasableSyntaxOnly
@r0b it would be… uh… https://github.com/developit/htm
Its kind of a slippery slope of Node.js here (prompted by Deno / Bun). By supporting a non-standard file format rather than waiting for eg. github.com/tc39/proposa... they have opened themselves up to requests to support lots of other syntax.
Only good part is that its a strict stripping now – else we might have ended up with an equivalent of in-core support for Coffeescript in a couple of years