Skip to content

Commit 0616187

Browse files
authored
Optimize language service build (tailwindlabs#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).
1 parent bc2e5ed commit 0616187

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
last 2 Chrome versions
2+
last 2 Firefox versions
3+
last 2 Safari versions
4+
node 12

0 commit comments

Comments
 (0)