razzle
razzle copied to clipboard
razzle\config\jest\babelTransform.js doesn't pickup babel config and don't respect modified paths
🐛 Bug report
Current Behavior
if babel config file is anything besides default .babelrc
(let's say .babelrc.json
as I prefer extensions) then it will not be picked up by razzle test
command as razzle\config\jest\babelTransform.js
checks only for default .babelrc
.
Using modifyPaths
also doesn't work as it result is not passed to razzle\config\jest\babelTransform.js
.
Expected behavior
Any valid default locations of babel config is picked up by razzle test
.
Using modifyPaths
also should work with razzle test
.
Your environment
Software | Version(s) |
---|---|
Razzle | ^4.2.13 |
Razzle Plugins | |
Node | v16.13.2 |
Browser | |
npm/Yarn | 8.1.2 |
Operating System | |
TypeScript | |
React |
Not sure if that is doable. Maybe using env vars somehow..