mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00:00
This commit marks the `compilationMode` compiler option as stable, such that libraries can be compiled in partial compilation mode. In partial compilation mode, the compiler's output changes from fully compiled AOT definitions to an intermediate form using partial declarations. This form is suitable to be published to NPM, which now allows libraries to be compiled and published using the Ivy compiler. Please be aware that libraries that have been compiled using this mode can only be used in Angular 12 applications and up; they cannot be used when Ivy is disabled (i.e. when using View Engine) or in versions of Angular prior to 12. The `compilationMode` option has no effect if `enableIvy: false` is used. Closes #41496 PR Close #41518
49 lines
1.3 KiB
TypeScript
49 lines
1.3 KiB
TypeScript
export interface BazelAndG3Options {
|
|
annotateForClosureCompiler?: boolean;
|
|
generateDeepReexports?: boolean;
|
|
}
|
|
|
|
export interface I18nOptions {
|
|
enableI18nLegacyMessageIdFormat?: boolean;
|
|
i18nInLocale?: string;
|
|
i18nNormalizeLineEndingsInICUs?: boolean;
|
|
i18nUseExternalIds?: boolean;
|
|
}
|
|
|
|
export interface LegacyNgcOptions {
|
|
allowEmptyCodegenFiles?: boolean;
|
|
flatModuleId?: string;
|
|
flatModuleOutFile?: string;
|
|
fullTemplateTypeCheck?: boolean;
|
|
preserveWhitespaces?: boolean;
|
|
strictInjectionParameters?: boolean;
|
|
}
|
|
|
|
export interface MiscOptions {
|
|
compileNonExportedClasses?: boolean;
|
|
disableTypeScriptVersionCheck?: boolean;
|
|
}
|
|
|
|
export interface NgcCompatibilityOptions {
|
|
enableIvy?: boolean | 'ngtsc';
|
|
generateNgFactoryShims?: boolean;
|
|
generateNgSummaryShims?: boolean;
|
|
}
|
|
|
|
export interface StrictTemplateOptions {
|
|
strictAttributeTypes?: boolean;
|
|
strictContextGenerics?: boolean;
|
|
strictDomEventTypes?: boolean;
|
|
strictDomLocalRefTypes?: boolean;
|
|
strictInputAccessModifiers?: boolean;
|
|
strictInputTypes?: boolean;
|
|
strictLiteralTypes?: boolean;
|
|
strictNullInputTypes?: boolean;
|
|
strictOutputEventTypes?: boolean;
|
|
strictSafeNavigationTypes?: boolean;
|
|
strictTemplates?: boolean;
|
|
}
|
|
|
|
export interface TargetOptions {
|
|
compilationMode?: 'full' | 'partial';
|
|
}
|