fix(compiler-cli): fix memory leaks in watch mode (#18961)
PR Close #18961
This commit is contained in:
parent
56b751ead5
commit
83e5deb988
|
@ -55,7 +55,7 @@ class AngularCompilerProgram implements Program {
|
||||||
|
|
||||||
constructor(
|
constructor(
|
||||||
private rootNames: string[], private options: CompilerOptions, private host: CompilerHost,
|
private rootNames: string[], private options: CompilerOptions, private host: CompilerHost,
|
||||||
private oldProgram?: Program) {
|
oldProgram?: Program) {
|
||||||
if (options.flatModuleOutFile && !options.skipMetadataEmit) {
|
if (options.flatModuleOutFile && !options.skipMetadataEmit) {
|
||||||
const {host: bundleHost, indexName, errors} = createBundleIndexHost(options, rootNames, host);
|
const {host: bundleHost, indexName, errors} = createBundleIndexHost(options, rootNames, host);
|
||||||
if (errors) {
|
if (errors) {
|
||||||
|
|
Loading…
Reference in New Issue