1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
|
Description: fix for current tsc & rollup 2
Author: Xavier Guimard <yadd@debian.org>
Forwarded: not-needed
Last-Update: 2020-10-04
--- a/packages/typescript/src/index.ts
+++ b/packages/typescript/src/index.ts
@@ -145,7 +145,7 @@
const output = findTypescriptOutput(ts, parsedOptions, id, emittedFiles, tsCache);
- return output.code != null ? (output as SourceDescription) : null;
+ return output["code"] != null ? (output as SourceDescription) : null;
},
async generateBundle(outputOptions) {
--- a/packages/typescript/src/outputFile.ts
+++ b/packages/typescript/src/outputFile.ts
@@ -10,6 +10,8 @@
import type TSCache from './tscache';
export interface TypescriptSourceDescription extends Partial<SourceDescription> {
+ code: string;
+ map: string;
declarations: string[];
}
|