Optimize language service build (#520)

`tsdx` uses `.browserslistrc` to determine how to transpile the source
code. By default it supports very old environments.

By specifying relatively modern targets, the bundle size has been
reduced with ~40%. This also significantly increases performance and
readability of the output, because babel’s regenerator runtime isn’t
used anymore.

The output target can’t be set to something too new, because `tsdx` uses
an older version of terser which isn’t compatible with all new syntax
(e.g. optional chaining).
master
Remco Haszing 2022-04-13 18:29:08 +02:00 committed by GitHub
parent bc2e5edd45
commit 061618745c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -0,0 +1,4 @@
last 2 Chrome versions
last 2 Firefox versions
last 2 Safari versions
node 12