Skip to content

Commit 53d6f1b

Browse files
authored
Update plugins.ts
1 parent d2d1909 commit 53d6f1b

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/transpilation/plugins.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,16 @@ export interface Plugin {
4545
emitHost: EmitHost,
4646
result: EmitFile[]
4747
) => 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;
4858
}
4959

5060
export function getPlugins(program: ts.Program): { diagnostics: ts.Diagnostic[]; plugins: Plugin[] } {

0 commit comments

Comments
 (0)