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:
parent
190105627f
commit
f4093a552f
@ -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}`;
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user