razzle icon indicating copy to clipboard operation
razzle copied to clipboard

razzle\config\jest\babelTransform.js doesn't pickup babel config and don't respect modified paths

Open VoronFX opened this issue 3 years ago • 1 comments

🐛 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

VoronFX avatar Jan 25 '22 16:01 VoronFX

Not sure if that is doable. Maybe using env vars somehow..

fivethreeo avatar Jan 25 '22 18:01 fivethreeo