Revert "chore: Remove unnecessary calls to Parse5DomAdapter"

This reverts commit 387a90e546.
This commit is contained in:
Misko Hevery
2016-06-14 19:16:18 -07:00
parent 8a54c1a115
commit 80deac5cde
5 changed files with 10 additions and 0 deletions

View File

@ -4,6 +4,7 @@
*/
import * as compiler from '@angular/compiler';
import {ViewEncapsulation} from '@angular/core';
import {Parse5DomAdapter} from '@angular/platform-server';
import {AngularCompilerOptions} from '@angular/tsc-wrapped';
import * as path from 'path';
import * as ts from 'typescript';
@ -105,6 +106,8 @@ export class CodeGenerator {
}
codegen(): Promise<any> {
Parse5DomAdapter.makeCurrent();
let stylesheetPromises: Promise<any>[] = [];
const generateOneFile = (absSourcePath: string) =>
Promise.all(this.readComponents(absSourcePath))