• J
    fix(next/babel): read env from caller, not process (#20679) · 58ea3bb4
    Joe Haddad 提交于
    This PR fixes a bug where `next/babel` would accidentally enable development transforms for a production build (`next build`).
    
    This is tested by the two updated unit tests (which removed a workaround for this bug, and one now properly enables dev transforms).
    
    ---
    
    Fixes #18929
    Fixes #19001
    x-ref #19046
    x-ref #17032
    58ea3bb4
next-babel-loader.unit.test.js 15.8 KB