We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c8924f3 commit aefe583Copy full SHA for aefe583
src/index.js
@@ -111,9 +111,12 @@ module.exports = function(source, inputSourceMap) {
111
// Handle options
112
const loaderOptions = loaderUtils.getOptions(this) || {};
113
const fileSystem = this.fs ? this.fs : fs;
114
- const babelrcPath = exists(fileSystem, loaderOptions.babelrc)
115
- ? loaderOptions.babelrc
116
- : resolveRc(fileSystem, path.dirname(filename));
+ let babelrcPath = null;
+ if (loaderOptions.babelrc !== false) {
+ babelrcPath = exists(fileSystem, loaderOptions.babelrc)
117
+ ? loaderOptions.babelrc
118
+ : resolveRc(fileSystem, path.dirname(filename));
119
+ }
120
121
if (babelrcPath) {
122
this.addDependency(babelrcPath);
0 commit comments