See #4697 (comment). Rather than our CLI loader searching the file tree for .babelrc files or package.json files with a babel key, pass the path and filename of the file to be compiled into Babel in its filename property, so that Babel can follow its own algorithm for finding its options rather than us trying to replicate what it does.