Use the babelrc option in babel-register

Which can be used to ignore `.babelrc` files by setting this to false, currently ignored in babel-register.
This commit is contained in:
CrocoDillon 2015-12-14 17:47:06 -05:00
parent 190105627f
commit f4093a552f

View File

@ -54,7 +54,7 @@ function compile(filename) {
// merge in base options and resolve all the plugins and presets relative to this file
optsManager.mergeOptions(deepClone(transformOpts), "base", null, path.dirname(filename));
let opts = optsManager.init({ filename });
let opts = optsManager.init({ filename, babelrc: transformOpts.babelrc });
let cacheKey = `${JSON.stringify(opts)}:${babel.version}`;