fix(packages): use ES modules for primary build (#11120)
This commit is contained in:

committed by
Victor Berchet

parent
8cb1046ce9
commit
979657989b
1
modules/@angular/router/testing/facade
Symbolic link
1
modules/@angular/router/testing/facade
Symbolic link
@ -0,0 +1 @@
|
||||
../../facade/src
|
14
modules/@angular/router/testing/index.ts
Normal file
14
modules/@angular/router/testing/index.ts
Normal file
@ -0,0 +1,14 @@
|
||||
/**
|
||||
* @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 for all public APIs of the router/testing package.
|
||||
*/
|
||||
export * from './router_testing_module';
|
13
modules/@angular/router/testing/private_import_router.ts
Normal file
13
modules/@angular/router/testing/private_import_router.ts
Normal file
@ -0,0 +1,13 @@
|
||||
/**
|
||||
* @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
|
||||
*/
|
||||
|
||||
import {__router_private__ as _} from '@angular/router';
|
||||
|
||||
export var ROUTER_PROVIDERS: typeof _.ROUTER_PROVIDERS = _.ROUTER_PROVIDERS;
|
||||
export var ROUTES: typeof _.ROUTES = _.ROUTES;
|
||||
export var flatten: typeof _.flatten = _.flatten;
|
@ -9,14 +9,9 @@
|
||||
import {Location, LocationStrategy} from '@angular/common';
|
||||
import {MockLocationStrategy, SpyLocation} from '@angular/common/testing';
|
||||
import {Compiler, Injectable, Injector, ModuleWithProviders, NgModule, NgModuleFactory, NgModuleFactoryLoader} from '@angular/core';
|
||||
import {Route, Router, RouterModule, RouterOutletMap, Routes, UrlSerializer, provideRoutes} from '@angular/router';
|
||||
|
||||
import {Route, Router, RouterOutletMap, UrlSerializer} from '../index';
|
||||
import {Routes} from '../src/config';
|
||||
import {ROUTES} from '../src/router_config_loader';
|
||||
import {ROUTER_PROVIDERS, RouterModule, provideRoutes} from '../src/router_module';
|
||||
import {flatten} from '../src/utils/collection';
|
||||
|
||||
|
||||
import {ROUTER_PROVIDERS, ROUTES, flatten} from './private_import_router';
|
||||
|
||||
/**
|
||||
* A spy for {@link NgModuleFactoryLoader} that allows tests to simulate the loading of ng module
|
||||
|
Reference in New Issue
Block a user