Skip to content

Commit 0efda0a

Browse files
committed
fix(react-email): Missing util/types for imports
1 parent 869078c commit 0efda0a

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

.changeset/brave-pumas-march.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"react-email": patch
3+
---
4+
5+
Add util/types as a module

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ import tls from 'node:tls';
3434
import tty from 'node:tty';
3535
import url from 'node:url';
3636
import util from 'node:util';
37+
import utilTypes from 'node:util/types';
3738
import v8 from 'node:v8';
3839
import vm from 'node:vm';
3940
import workerThreads from 'node:worker_threads';
@@ -81,6 +82,7 @@ export const staticNodeModulesForVM = {
8182
tty,
8283
url,
8384
util,
85+
'util/types': utilTypes,
8486
v8,
8587
vm,
8688
'worker_threads': workerThreads,

0 commit comments

Comments
 (0)