mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
fix(compiler-cli): rename flag for enabling fast type declaration emission (#61353)
Rename the flag `_geminiAllowEmitDeclarationOnly` to `_experimentalAllowEmitDeclarationOnly` as a follow-up on a comment in PR #61334. PR Close #61353
This commit is contained in:
committed by
Jessica Janiuk
parent
7aae854f5e
commit
77fa204ad1
@@ -7,7 +7,7 @@
|
||||
// @public
|
||||
export interface BazelAndG3Options {
|
||||
annotateForClosureCompiler?: boolean;
|
||||
_geminiAllowEmitDeclarationOnly?: boolean;
|
||||
_experimentalAllowEmitDeclarationOnly?: boolean;
|
||||
generateDeepReexports?: boolean;
|
||||
generateExtraImportsInLocalMode?: boolean;
|
||||
onlyExplicitDeferDependencyImports?: boolean;
|
||||
|
||||
@@ -353,9 +353,9 @@ export interface BazelAndG3Options {
|
||||
* references.
|
||||
*
|
||||
* The mode is experimental and specifically tailored to support fast type declaration emission
|
||||
* for the Gemini app in g3.
|
||||
* for the Gemini app in g3 for the initial phase of the experiment.
|
||||
*/
|
||||
_geminiAllowEmitDeclarationOnly?: boolean;
|
||||
_experimentalAllowEmitDeclarationOnly?: boolean;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -468,7 +468,7 @@ export class NgCompiler {
|
||||
this.enableLetSyntax = options['_enableLetSyntax'] ?? true;
|
||||
this.enableSelectorless = options['_enableSelectorless'] ?? false;
|
||||
this.emitDeclarationOnly =
|
||||
!!options.emitDeclarationOnly && !!options._geminiAllowEmitDeclarationOnly;
|
||||
!!options.emitDeclarationOnly && !!options._experimentalAllowEmitDeclarationOnly;
|
||||
// Standalone by default is enabled since v19. We need to toggle it here,
|
||||
// because the language service extension may be running with the latest
|
||||
// version of the compiler against an older version of Angular.
|
||||
|
||||
+1
-1
@@ -43,7 +43,7 @@ function emitDeclarationOnlyTest(fs: FileSystem, test: ComplianceTest): CompileR
|
||||
},
|
||||
{
|
||||
...test.angularCompilerOptions,
|
||||
_geminiAllowEmitDeclarationOnly: true,
|
||||
_experimentalAllowEmitDeclarationOnly: true,
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
@@ -31,7 +31,7 @@ runInEachFileSystem(() => {
|
||||
noCheck: true,
|
||||
},
|
||||
angularCompilerOptions: {
|
||||
_geminiAllowEmitDeclarationOnly: true,
|
||||
_experimentalAllowEmitDeclarationOnly: true,
|
||||
},
|
||||
};
|
||||
env.write('tsconfig.json', JSON.stringify(tsconfig, null, 2));
|
||||
|
||||
Reference in New Issue
Block a user