
Provides a runtime and compile time switch for ivy including `ApplicationRef.bootstrapModule`. This is done by naming the symbols such that `ngcc` (angular Compatibility compiler) can rename symbols in such a way that running `ngcc` command will switch the `@angular/core` module from `legacy` to `ivy` mode. This is done as follows: ``` const someToken__PRE_NGCC__ = ‘legacy mode’; const someToken__POST_NGCC__ = ‘ivy mode’; export someSymbol = someToken__PRE_NGCC__; ``` The `ngcc` will search for any token which ends with `__PRE_NGCC__` and replace it with `__POST_NGCC__`. This allows the `@angular/core` package to be rewritten to ivy mode post `ngcc` execution. PR Close #25238
39 lines
1.8 KiB
TypeScript
39 lines
1.8 KiB
TypeScript
/**
|
|
* @license
|
|
* Copyright Google Inc. All Rights Reserved.
|
|
*
|
|
* Use of this source code is governed by an MIT-style license that can be
|
|
* found in the LICENSE file at https://angular.io/license
|
|
*/
|
|
|
|
/**
|
|
* @module
|
|
* @description
|
|
* Entry point from which you should import all public core APIs.
|
|
*/
|
|
export * from './metadata';
|
|
export * from './version';
|
|
export {TypeDecorator} from './util/decorators';
|
|
export * from './di';
|
|
export {createPlatform, assertPlatform, destroyPlatform, getPlatform, PlatformRef, ApplicationRef, createPlatformFactory, NgProbeToken} from './application_ref';
|
|
export {enableProdMode, isDevMode} from './is_dev_mode';
|
|
export {APP_ID, PACKAGE_ROOT_URL, PLATFORM_INITIALIZER, PLATFORM_ID, APP_BOOTSTRAP_LISTENER} from './application_tokens';
|
|
export {APP_INITIALIZER, ApplicationInitStatus} from './application_init';
|
|
export * from './zone';
|
|
export * from './render';
|
|
export * from './linker';
|
|
export {DebugElement, DebugNode, asNativeElements, getDebugNode, Predicate} from './debug/debug_node';
|
|
export {GetTestability, Testability, TestabilityRegistry, setTestabilityGetter} from './testability/testability';
|
|
export * from './change_detection';
|
|
export * from './platform_core_providers';
|
|
export {TRANSLATIONS, TRANSLATIONS_FORMAT, LOCALE_ID, MissingTranslationStrategy} from './i18n/tokens';
|
|
export {ApplicationModule} from './application_module';
|
|
export {wtfCreateScope, wtfLeave, wtfStartTimeRange, wtfEndTimeRange, WtfScopeFn} from './profile/profile';
|
|
export {Type} from './type';
|
|
export {EventEmitter} from './event_emitter';
|
|
export {ErrorHandler} from './error_handler';
|
|
export * from './core_private_export';
|
|
export * from './core_render3_private_export';
|
|
export {Sanitizer, SecurityContext} from './sanitization/security';
|
|
export * from './codegen_private_exports';
|