Skip to content

Commit 07df358

Browse files
add empty default for source maps, closes ionic-team#361
1 parent 0821afd commit 07df358

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/transpile.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ export function transpileWorker(context: BuildContext, workerConfig: TranspileWo
105105
const program = ts.createProgram(tsFileNames, tsConfig.options, host, cachedProgram);
106106
program.emit(undefined, (path: string, data: string, writeByteOrderMark: boolean, onError: Function, sourceFiles: ts.SourceFile[]) => {
107107
if (workerConfig.writeInMemory) {
108-
writeSourceFiles(context.fileCache, sourceFiles);
108+
writeSourceFiles(context.fileCache, sourceFiles || []);
109109
writeTranspiledFilesCallback(context.fileCache, path, data, workerConfig.inlineTemplate);
110110
}
111111
});

0 commit comments

Comments
 (0)