Skip to content

Commit

Permalink
chore: try a different buffer shim
Browse files Browse the repository at this point in the history
  • Loading branch information
shellscape committed Feb 28, 2024
1 parent c44613f commit 6974246
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 22 deletions.
2 changes: 1 addition & 1 deletion packages/jsx-email/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@
"titleize": "^4.0.0",
"unist-util-visit": "^5.0.0",
"vite": "^4.4.9",
"vite-plugin-node-polyfills": "^0.21.0",
"vite-plugin-node-polyfills": "0.17.0",
"vite-tsconfig-paths": "^4.3.1",
"yargs-parser": "^21.1.1"
},
Expand Down
6 changes: 5 additions & 1 deletion packages/jsx-email/src/cli/vite.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,11 @@ export const getViteConfig = async (templatesPath: string) => {
'rehype-preset-minify/': `export default {};`
}
}),
nodePolyfills(),
nodePolyfills({
globals: {
Buffer: true
}
}),
react()
],
resolve: {
Expand Down
35 changes: 15 additions & 20 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 6974246

Please sign in to comment.