parent
4c0ad5238e
commit
5b4cf38166
@ -7,7 +7,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
import * as ng from '@angular/compiler-cli';
|
import * as ng from '@angular/compiler-cli';
|
||||||
import {BazelOptions, CachedFileLoader, CompilerHost, FileCache, FileLoader, UncachedFileLoader, constructManifest, debug, fixUmdModuleDeclarations, parseTsconfig, resolveNormalizedPath, runAsWorker, runWorkerLoop} from '@bazel/typescript';
|
import {BazelOptions, CachedFileLoader, CompilerHost, FileCache, FileLoader, UncachedFileLoader, constructManifest, debug, parseTsconfig, resolveNormalizedPath, runAsWorker, runWorkerLoop} from '@bazel/typescript';
|
||||||
import * as fs from 'fs';
|
import * as fs from 'fs';
|
||||||
import * as path from 'path';
|
import * as path from 'path';
|
||||||
import * as tsickle from 'tsickle';
|
import * as tsickle from 'tsickle';
|
||||||
@ -291,10 +291,7 @@ export function compile({allowNonHermeticReads, allDepsCompiledWithBazel = true,
|
|||||||
program, bazelHost, bazelHost, compilerOpts, targetSourceFile, writeFile,
|
program, bazelHost, bazelHost, compilerOpts, targetSourceFile, writeFile,
|
||||||
cancellationToken, emitOnlyDtsFiles, {
|
cancellationToken, emitOnlyDtsFiles, {
|
||||||
beforeTs: customTransformers.before,
|
beforeTs: customTransformers.before,
|
||||||
afterTs: [
|
afterTs: customTransformers.after,
|
||||||
...(customTransformers.after || []),
|
|
||||||
fixUmdModuleDeclarations((sf: ts.SourceFile) => bazelHost.amdModuleName(sf)),
|
|
||||||
],
|
|
||||||
});
|
});
|
||||||
|
|
||||||
if (!gatherDiagnostics) {
|
if (!gatherDiagnostics) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user