File tree 3 files changed +6
-9
lines changed
3 files changed +6
-9
lines changed Original file line number Diff line number Diff line change @@ -15,10 +15,7 @@ import { AngularCompilerOptions } from '@angular/tsc-wrapped';
15
15
* Option Constants
16
16
*/
17
17
export type NgcCompilerMode = 'aot' | 'jit'
18
- export interface EmittedFile {
19
- sourceMap : any ,
20
- source : string
21
- }
18
+
22
19
23
20
export interface AngularWebpackPluginOptions {
24
21
tsconfigPath ?: string ;
@@ -71,7 +68,8 @@ export class NgcWebpackPlugin {
71
68
this . rootModuleName = rootNgModule ;
72
69
this . compilerHost = ts . createCompilerHost ( this . compilerOptions , true ) ;
73
70
this . program = ts . createProgram ( this . files , this . compilerOptions , this . compilerHost ) ;
74
- this . reflectorHost = new ngCompiler . ReflectorHost ( this . program , this . compilerHost , this . angularCompilerOptions ) ;
71
+ this . reflectorHost = new ngCompiler . ReflectorHost (
72
+ this . program , this . compilerHost , this . angularCompilerOptions ) ;
75
73
this . reflector = new ngCompiler . StaticReflector ( this . reflectorHost ) ;
76
74
}
77
75
Original file line number Diff line number Diff line change @@ -22,5 +22,5 @@ export function patchReflectorHost(codeGenerator: CodeGenerator) {
22
22
const result = oldGIP . call ( this , containingFile , baseDirAndName + '.css' + shim + ext ) ;
23
23
24
24
return result . replace ( / \. c s s \. / , styleExt + '.' ) ;
25
- }
25
+ } ;
26
26
}
Original file line number Diff line number Diff line change @@ -3,11 +3,9 @@ import {readFileSync} from 'fs';
3
3
import * as vm from 'vm' ;
4
4
import * as path from 'path' ;
5
5
6
- const SingleEntryDependency = require ( 'webpack/lib/dependencies/SingleEntryDependency' ) ;
7
6
const NodeTemplatePlugin = require ( 'webpack/lib/node/NodeTemplatePlugin' ) ;
8
7
const NodeTargetPlugin = require ( 'webpack/lib/node/NodeTargetPlugin' ) ;
9
8
const LoaderTargetPlugin = require ( 'webpack/lib/LoaderTargetPlugin' ) ;
10
- const LibraryTemplatePlugin = require ( 'webpack/lib/LibraryTemplatePlugin' ) ;
11
9
const SingleEntryPlugin = require ( 'webpack/lib/SingleEntryPlugin' ) ;
12
10
13
11
@@ -23,7 +21,8 @@ export class WebpackResourceLoader implements ResourceLoader {
23
21
private _compile ( filePath : string , content : string ) : Promise < any > {
24
22
const compilerName = `compiler(${ this . _uniqueId ++ } :${ filePath } )` ;
25
23
const outputOptions = { filename : filePath } ;
26
- const childCompiler = this . _compilation . createChildCompiler ( path . relative ( this . _context || '' , filePath ) , outputOptions ) ;
24
+ const relativePath = path . relative ( this . _context || '' , filePath ) ;
25
+ const childCompiler = this . _compilation . createChildCompiler ( relativePath , outputOptions ) ;
27
26
childCompiler . context = this . _context ;
28
27
childCompiler . apply (
29
28
new NodeTemplatePlugin ( outputOptions ) ,
You can’t perform that action at this time.
0 commit comments