Skip to content

Commit 0278af5

Browse files
committed
feat(vs-code-ext): Use jsx: "automatic" instead of pre-defined tsconfig
1 parent b0ebac5 commit 0278af5

File tree

2 files changed

+7
-37
lines changed

2 files changed

+7
-37
lines changed

vs-code-extension/src/renderOpenEmailFile.ts

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@ const extensionPreviewFolder = ".vscpreview" as const;
1212

1313
export type BuiltEmail =
1414
| {
15-
filename: string;
16-
html: string;
17-
text: string;
18-
valid: true;
19-
}
15+
filename: string;
16+
html: string;
17+
text: string;
18+
valid: true;
19+
}
2020
| { valid: false };
2121

2222
export async function renderOpenEmailFile(
@@ -51,7 +51,8 @@ export async function renderOpenEmailFile(
5151
entryPoints: [currentlyOpenTabFilePath],
5252
platform: "node",
5353
write: true,
54-
tsconfig: join(__dirname, "..", "tsconfig.emails.json"),
54+
jsx: "automatic",
55+
format: "cjs",
5556
outfile: builtFileWithCurrentContents,
5657
});
5758

vs-code-extension/tsconfig.emails.json

Lines changed: 0 additions & 31 deletions
This file was deleted.

0 commit comments

Comments
 (0)