Skip to content
This repository was archived by the owner on Sep 27, 2023. It is now read-only.

Commit 061b8a6

Browse files
committed
add the 'append' after export default node
1 parent 39aecfd commit 061b8a6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/formatGeneratedModule.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ const defaultFormatOptions: FormatterOptions = {
1717

1818
export const formatterFactory = (
1919
compilerOptions: ts.CompilerOptions = {},
20-
{ makeImports }: FormatterOptions = defaultFormatOptions
20+
{ makeImports, append }: FormatterOptions = defaultFormatOptions
2121
): FormatModule => (details) => {
2222
const {
2323
documentType,
@@ -46,5 +46,5 @@ ${docTextComment}
4646
${nodeStatement}
4747
(node as any).hash = '${sourceHash}';
4848
export default node;
49-
`;
49+
${append ? `\n${append}\n` : ""}`;
5050
};

0 commit comments

Comments
 (0)