ts-browser
ts-browser copied to clipboard
Release web workers after compilation is finished
I just noticed that workers keep hanging in the background even after all typescript files were loaded. I believe that wastes away a lot of RAM, as each worker initializes the typescript compiler.
The only reason we may want to keep workers around is the dynamic imports. Maybe use cold re-start of workers in such cases or just compile in the main thread, dunno...