-
Notifications
You must be signed in to change notification settings - Fork 12.9k
Open
Labels
InfrastructureIssue relates to TypeScript team infrastructureIssue relates to TypeScript team infrastructure
Description
Our libraries are all UMD-ish, because they can be used in Node or in the browser. I didn't change this for the module transform.
However, most of our executables are CJS, as they are only intended to be run within Node. This includes tsc, typingsInstaller, and watchGuard. An exception is tsserver, which contains web code for vscode.dev.
tsc and typingsInstaller both share a lot of code; if they only run on Node anyway, we could potentially raise our minimum Node version to node 12, and ship them as ESM via esbuild's split ESM bundling. If we get vscode.dev off of tsserver (and onto tsserverlibrary), then all three can share code.
In my testing, this reduces our package size by an additional 7 MB, which is a great win.
Jack-Works, xiaoxiangmoe, robpalme, lucsoft, JoshuaKGoldberg and 8 more
Metadata
Metadata
Assignees
Labels
InfrastructureIssue relates to TypeScript team infrastructureIssue relates to TypeScript team infrastructure