Repository navigation
Replies: 1 comment
|
Short version: you can't pass it, and react-email doesn't use Node's resolver to load your templates. It runs its own esbuild The other half of the problem is that the esbuild options are hardcoded and not exposed, so there's no build({ bundle: true, platform: 'node', format: 'esm', jsx: 'automatic', ... })With Two ways around it:
If you genuinely need custom conditions honored, that's a feature request on react-email to forward esbuild config (or expose a |
Uh oh!
There was an error while loading. Please reload this page.
I have a package with custom export conditions, which I need to set for the emails to work properly.
In node, I can just do
node --conditions=email index.js. But since react-email has their own bundler it does not seem to work the same way.All reactions