Skip to content

Commit bb79540

Browse files
committedOct 14, 2024
fix(react-email): MongoDB driver import breaking compilation (#1685)
1 parent 7547f32 commit bb79540

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed
 

‎.changeset/young-terms-sparkle.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"react-email": patch
3+
---
4+
5+
Add missing timers/promises Node module for `email dev`

‎packages/react-email/src/utils/static-node-modules-for-vm.ts

+2
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ import repl from 'node:repl';
3030
import stream from 'node:stream';
3131
import stringDecoder from 'node:string_decoder';
3232
import timers from 'node:timers';
33+
import timersPromises from 'node:timers/promises';
3334
import tls from 'node:tls';
3435
import tty from 'node:tty';
3536
import url from 'node:url';
@@ -78,6 +79,7 @@ export const staticNodeModulesForVM = {
7879
stream,
7980
'string_decoder': stringDecoder,
8081
timers,
82+
'timers/promises': timersPromises,
8183
tls,
8284
tty,
8385
url,

0 commit comments

Comments
 (0)
Please sign in to comment.