Skip to content

Commit 813a367

Browse files
committed
fix (vs-code-ext): use require instead of import due to cjs esm problems
1 parent fc88231 commit 813a367

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

vs-code-extension/src/renderOpenEmailFile.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ export async function renderOpenEmailFile(
5555

5656
// for future people debugging this: if this doesnt update the preview, might be because import keeps a cache
5757
// and the hash is not being unique (unlikely though)
58-
const email = await import(builtFileWithCurrentContents);
58+
const email = require(builtFileWithCurrentContents);
5959

6060
if (typeof email.default === "undefined") {
6161
// this means there is no "export default ..." in the file

0 commit comments

Comments
 (0)