2016-08-30 18:07:40 -07:00
|
|
|
/**
|
|
|
|
* @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
|
|
|
|
*/
|
|
|
|
|
2017-08-16 09:00:03 -07:00
|
|
|
import {ResourceLoader} from '@angular/compiler';
|
|
|
|
import {CompilerFactory, PlatformRef, Provider, StaticProvider, createPlatformFactory, platformCore} from '@angular/core';
|
2016-08-30 18:07:40 -07:00
|
|
|
|
2017-08-16 09:00:03 -07:00
|
|
|
import {platformCoreDynamic} from './platform_core_dynamic';
|
2016-08-30 18:07:40 -07:00
|
|
|
import {INTERNAL_BROWSER_DYNAMIC_PLATFORM_PROVIDERS} from './platform_providers';
|
|
|
|
import {CachedResourceLoader} from './resource_loader/resource_loader_cache';
|
|
|
|
|
|
|
|
export * from './private_export';
|
2016-12-06 16:21:07 -08:00
|
|
|
export {VERSION} from './version';
|
2017-11-15 18:22:23 +01:00
|
|
|
export {JitCompilerFactory} from './compiler_factory';
|
2017-08-16 09:00:03 -07:00
|
|
|
|
2016-08-30 18:07:40 -07:00
|
|
|
/**
|
2018-10-19 12:12:20 +01:00
|
|
|
* @publicApi
|
2016-08-30 18:07:40 -07:00
|
|
|
*/
|
|
|
|
export const RESOURCE_CACHE_PROVIDER: Provider[] =
|
2017-08-08 11:41:12 -07:00
|
|
|
[{provide: ResourceLoader, useClass: CachedResourceLoader, deps: []}];
|
2016-08-30 18:07:40 -07:00
|
|
|
|
|
|
|
export const platformBrowserDynamic = createPlatformFactory(
|
|
|
|
platformCoreDynamic, 'browserDynamic', INTERNAL_BROWSER_DYNAMIC_PLATFORM_PROVIDERS);
|