Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
Allow preset-env to toggle module handling based on flags from the caller (like babel-loader) #8485
What this PR essentially means is that utilities calling Babel can:
This resolves a frustrating error I encountered where I was receiving: ReferenceError: Unknown option: .caller ...when trying to use `@babel/register`. This mysteriously went away when I upgraded to `rc.2`, which was inspired after I honed in on related work to the `caller` option in babel/babel#8485 after debugging Babel's `loadOptions` (in `7.0.0-rc.1`) with the Node.js debugger.