fix(core): Remove static dependency from @angular/core to @angular/compiler (#26734)

PR Close #26734
This commit is contained in:
Misko Hevery
2018-10-24 16:02:25 -07:00
committed by Matias Niemelä
parent 5d740785a9
commit d042c4afe0
46 changed files with 923 additions and 551 deletions

View File

@ -7,6 +7,7 @@ ts_library(
testonly = 1,
srcs = ["init_browser_spec.ts"],
deps = [
"//packages/compiler",
"//packages/core/testing",
"//packages/platform-browser-dynamic/testing",
"//packages/platform-browser/animations",
@ -18,6 +19,7 @@ ts_library(
testonly = 1,
srcs = ["init_node_spec.ts"],
deps = [
"//packages/compiler",
"//packages/core/testing",
"//packages/platform-server",
"//packages/platform-server/testing",

View File

@ -6,6 +6,7 @@
* found in the LICENSE file at https://angular.io/license
*/
import '@angular/compiler'; // For JIT mode. Must be in front of any other @angular/* imports.
import {TestBed} from '@angular/core/testing';
import {BrowserDynamicTestingModule, platformBrowserDynamicTesting} from '@angular/platform-browser-dynamic/testing';
import {NoopAnimationsModule} from '@angular/platform-browser/animations';

View File

@ -36,6 +36,7 @@ import 'zone.js/dist/jasmine-patch.js';
(global as any).isNode = true;
(global as any).isBrowser = false;
import '@angular/compiler'; // For JIT mode. Must be in front of any other @angular/* imports.
// Init TestBed
import {TestBed} from '@angular/core/testing';
import {ServerTestingModule, platformServerTesting} from '@angular/platform-server/testing/src/server';