From 7882bbf98fb68dc1ebe55a809e97dfa625195ff0 Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Fri, 15 Apr 2022 19:54:40 -0500 Subject: [PATCH] Convert application entrypoint files into Typescript --- app/{application.js => application.ts} | Bin 313 -> 327 bytes .../{load_polyfills.js => load_polyfills.ts} | Bin 1329 -> 1419 bytes app/soapbox/{main.js => main.tsx} | Bin 789 -> 820 bytes app/soapbox/{monitoring.js => monitoring.ts} | Bin 808 -> 845 bytes .../{performance.js => performance.ts} | Bin 1004 -> 971 bytes app/soapbox/{ready.js => ready.ts} | Bin 212 -> 230 bytes tsconfig.json | 2 +- webpack/shared.js | Bin 4347 -> 4347 bytes 8 files changed, 1 insertion(+), 1 deletion(-) rename app/{application.js => application.ts} (95%) rename app/soapbox/{load_polyfills.js => load_polyfills.ts} (93%) rename app/soapbox/{main.js => main.tsx} (78%) rename app/soapbox/{monitoring.js => monitoring.ts} (73%) rename app/soapbox/{performance.js => performance.ts} (72%) rename app/soapbox/{ready.js => ready.ts} (74%) diff --git a/app/application.js b/app/application.ts similarity index 95% rename from app/application.js rename to app/application.ts index 59cd3374b77ea7475ae1aee6528a6fdbe180a32b..ba0d8f877c6a76d55e86663299094724a96b55ec 100644 GIT binary patch delta 24 fcmdnVbew5|Ij_FHfM4P5{L diff --git a/app/soapbox/main.js b/app/soapbox/main.tsx similarity index 78% rename from app/soapbox/main.js rename to app/soapbox/main.tsx index dfac430e0eb9a7bd5688e13540dc6059f951079a..0a9bbdb75f0089998dced20140d124ac29771d76 100644 GIT binary patch delta 64 zcmbQrwuNoNdI2qk#9{@f(#)I`=ls01%=C@B6B+qIVjdyBKCU^bxv6<2lVzAJd63lT JO%7!`007RF7A*h( delta 31 ncmdnOHkEC{dY) z8NV~CSt%5k6lLb6Yg#Fkpp;Hu>U0IV1yvj6}9 diff --git a/app/soapbox/ready.js b/app/soapbox/ready.ts similarity index 74% rename from app/soapbox/ready.js rename to app/soapbox/ready.ts index 341ca425c53703023bd509db544dd7c1cc143fcd..f74b03694b7bf9ca18a7a41d5920d5461708a313 100644 GIT binary patch delta 29 hcmcb@_>6Iav9OhbhNgn8okCfDW{Rd2n3`y^004y<2}J+^ delta 11 ScmaFHc!hC-F{9>0w*>$i9Rwi& diff --git a/tsconfig.json b/tsconfig.json index 81de339082..9897be7350 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -3,7 +3,7 @@ "baseUrl": "app/", "sourceMap": true, "strict": true, - "module": "es6", + "module": "es2022", "target": "es5", "jsx": "react", "allowJs": true, diff --git a/webpack/shared.js b/webpack/shared.js index 8135fa512d404008d7464ab9b70aed84ae5a7485..55ac4d6a73fd27de8c6073992798314460daaaf0 100644 GIT binary patch delta 14 VcmeyZ_*-#9I4fhx<_Ols+yF1R1$Y1e delta 14 VcmeyZ_*-#9I4fh;<_Ols+yF0q1#SQU