File tree Expand file tree Collapse file tree 2 files changed +424
-499
lines changed Expand file tree Collapse file tree 2 files changed +424
-499
lines changed Original file line number Diff line number Diff line change @@ -114,10 +114,11 @@ module.exports = function(source, inputSourceMap) {
114114 const fileSystem = this . fs ? this . fs : fs ;
115115 let babelrcPath = null ;
116116 if ( loaderOptions . babelrc !== false ) {
117- babelrcPath = typeof loaderOptions . babelrc === "string" &&
117+ babelrcPath =
118+ typeof loaderOptions . babelrc === "string" &&
118119 exists ( fileSystem , loaderOptions . babelrc )
119- ? loaderOptions . babelrc
120- : resolveRc ( fileSystem , path . dirname ( filename ) ) ;
120+ ? loaderOptions . babelrc
121+ : resolveRc ( fileSystem , path . dirname ( filename ) ) ;
121122 }
122123
123124 if ( babelrcPath ) {
@@ -135,9 +136,9 @@ module.exports = function(source, inputSourceMap) {
135136 babelrc : babelrcPath ? read ( fileSystem , babelrcPath ) : null ,
136137 env :
137138 loaderOptions . forceEnv ||
138- process . env . BABEL_ENV ||
139- process . env . NODE_ENV ||
140- "development" ,
139+ process . env . BABEL_ENV ||
140+ process . env . NODE_ENV ||
141+ "development" ,
141142 } ) ,
142143 } ;
143144
You can’t perform that action at this time.
0 commit comments