We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d2d1909 commit 53d6f1bCopy full SHA for 53d6f1b
src/transpilation/plugins.ts
@@ -45,6 +45,16 @@ export interface Plugin {
45
emitHost: EmitHost,
46
result: EmitFile[]
47
) => ts.Diagnostic[] | void;
48
+
49
+ /**
50
+ * This function is called after translating the input program to Lua, after resolving dependencies, after bundling and writing files to disk.
51
+ */
52
+ afterEmit?: (
53
+ program: ts.Program,
54
+ options: CompilerOptions,
55
+ emitHost: EmitHost,
56
+ result: EmitFile[]
57
+ ) => ts.Diagnostic[] | void;
58
}
59
60
export function getPlugins(program: ts.Program): { diagnostics: ts.Diagnostic[]; plugins: Plugin[] } {
0 commit comments