@jdalton @sindresorhus @rauschma @IgorMinar @TheLarkInn @kentcdodds @dan_abramov @Rich_Harris
Hello fellow open source publishing/bundling folks... I want to start a public discussion about the current "state of the art" for libraries publishing JavaScript modules... 1/6
-
Show this thread
-
Basically, RxJS is going to undergo (mostly cosmetic) changes over these next few months, and I think it's a good time for us to revisit our strategy for publishing different module types. 2/6
1 reply 0 retweets 3 likesShow this thread -
Currently, RxJS is publishing: ESM5, ESM2015, CJS, and a single "kitchen-sync" UMD (for classic global script-tag style imports), as well as TypeScript source files for source mapping. Honestly, it's a little out of control. 3/6
3 replies 1 retweet 3 likesShow this thread -
In your _opinion_, where are we headed? When will be the proper time to just publish ESM2015 (with extensions or whatever we need to do) and forgo building CJS/ESM5 etc? 4/6
1 reply 0 retweets 1 likeShow this thread -
With the advent of things like
@codesandbox,@stackblitz, and@unpkg, is it even necessary that we publish big UMD globals anymore? 5/62 replies 0 retweets 3 likesShow this thread -
Can we all, collectively, decide on one format and push things in that direction over the next year so I can stop building 3-4 different things? 6/6
13 replies 1 retweet 16 likesShow this thread -
Replying to @BenLesh
I know in the past the worry was that people would release untranspiled JavaScript containing early stage TC39 syntax that might change in future.
1 reply 0 retweets 1 like -
Maybe there could be a generated metadata file alongside the code describing the syntax within and preset to be used to transpile. And before publishing only transpile out JSX (types, macros, css-in-js, etc).
1 reply 0 retweets 0 likes -
Needing metadata seems complicated to me though. Maybe makes sense to standardise on transpiling to a very particular set of syntax accepted on the majority of modern browsers.
1 reply 0 retweets 0 likes -
Seb Insua Retweeted Dan Abramov
The source of my first comment:https://twitter.com/dan_abramov/status/1045686784536051712 …
Seb Insua added,
1 reply 0 retweets 0 likes
Seb Insua Retweeted Henry
Similarly, this comment by @left_pad makes me think that he might also have a good 2019 opinion on this.https://twitter.com/left_pad/status/1046033898034147328 …
Seb Insua added,
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.
Made same points in