Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.
TypeScript debiandeep-videojitsijitsi-meetscalable-video-conferencessfuvideovideo-communicationvideo-conferencingwebrtc
build: type check once with tsc instead of inside every webpack bundle
Hristo Terezov763da84d86d8
diff --git a/Makefile b/Makefileindex 182b95c80e..3f405875cc 100644--- a/Makefile+++ b/Makefile@@ -27,7 +27,12 @@ endifall: compile deploy-compile: clean+# Type checking is done once here rather than inside ts-loader, which would repeat+# it for every bundle (see webpack.config.js).+typecheck:+ npm run tsc:web++compile: clean typecheckNODE_OPTIONS=--max-old-space-size=10240 \$(WEBPACK)diff --git a/webpack.config.js b/webpack.config.jsindex a59988231a..930238082c 100644--- a/webpack.config.js+++ b/webpack.config.js@@ -236,7 +236,13 @@ function getConfig(options = {}) {loader: 'ts-loader',options: {configFile: 'tsconfig.web.json',- transpileOnly: !isProduction // Skip type checking for dev builds.,++ // Only strip types here. Type checking runs once, through `tsc` (the Makefile+ // `typecheck` target, the `build:load-test` script and CI). With type checking+ // enabled, ts-loader builds and checks a full TypeScript program of the whole+ // tree for every bundle below, which multiplied the build time and memory by+ // the number of bundles.+ transpileOnly: true}} ]},