Skip to content

Commit abf7ec1

Browse files
fix(jsx-email): remove react/jsx-runtime from jsx-email bundle (#282)
Co-authored-by: Andrew Powell <[email protected]>
1 parent d3e01b9 commit abf7ec1

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

packages/jsx-email/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@
106106
"postcss": "^8.4.32",
107107
"postcss-var-replace": "^1.0.0",
108108
"pretty-bytes": "^6.1.1",
109-
"react-dom": "^18.2.0",
109+
"react-dom": "^19",
110110
"react-router-dom": "7.0.1",
111111
"rehype": "^13.0.1",
112112
"rehype-stringify": "^10.0.0",

packages/jsx-email/src/cli/commands/preview.mts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ const buildDeployable = async ({ argv, targetPath }: PreviewCommonParams) => {
6868
minify: false,
6969
outDir: buildPath,
7070
rollupOptions: {
71+
external: ['react/jsx-runtime'],
7172
output: {
7273
manualChunks: {}
7374
}

0 commit comments

Comments
 (0)