Skip to content

Commit

Permalink
fix(react-email): Issue with NextJS SWC transpilation
Browse files Browse the repository at this point in the history
  • Loading branch information
gabrielmfern committed May 14, 2024
1 parent b71e091 commit 39509ea
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion packages/react-email/next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,12 @@ module.exports = {
}

return config;
}
},
// Noticed an issue with typescript transpilation when going from Next 14.1.1 to 14.1.2
// and I narrowed that down into this PR https://github.com/vercel/next.js/pull/62005
//
// What is probably happening is that it's noticing the files for the app are somewhere inside of a `node_modules` and automatically opt-outs of SWC's transpilation.
//
// TODO: Open an issue on Nextjs about this.
transpilePackages: ['react-email']
};

0 comments on commit 39509ea

Please sign in to comment.