build: reference zone.js from source directly instead of npm. (#33046)

Close #32482

PR Close #33046
This commit is contained in:
JiaLiPassion
2019-10-06 12:06:53 +09:00
committed by atscott
parent 3de72e4124
commit 8c6fb17d29
100 changed files with 181 additions and 159 deletions

View File

@ -6,12 +6,10 @@
* found in the LICENSE file at https://angular.io/license
*/
// import zone.js from npm here because integration test will load zone.js
// from built npm_package instead of source
import 'zone.js/dist/zone-node';
import 'zone.js/dist/zone-testing';
// Only needed to satisfy the check in core/src/util/decorators.ts
// TODO(alexeagle): maybe remove that check?
require('reflect-metadata');
require('zone.js/dist/zone-node.js');
require('zone.js/dist/long-stack-trace-zone.js');
require('zone.js/dist/sync-test.js');
require('zone.js/dist/proxy.js');
require('zone.js/dist/jasmine-patch.js');