babel-loader 7.1.0 → 7.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -22,6 +22,8 @@ __Notes:__ Issues with the output should be reported on the babel [issue tracker
22
22
  > webpack 1.x | babel-loader <= 6.x
23
23
  >
24
24
  > webpack 2.x | babel-loader >= 7.x (recommended) (^6.2.10 will also work, but with deprecation warnings)
25
+ >
26
+ > webpack 3.x | babel-loader >= 7.1
25
27
 
26
28
  ```bash
27
29
  yarn add babel-loader babel-core babel-preset-env webpack --dev
package/lib/index.js CHANGED
@@ -107,7 +107,10 @@ module.exports = function (source, inputSourceMap) {
107
107
  // Handle options
108
108
  var loaderOptions = loaderUtils.getOptions(this) || {};
109
109
  var fileSystem = this.fs ? this.fs : fs;
110
- var babelrcPath = exists(fileSystem, loaderOptions.babelrc) ? loaderOptions.babelrc : resolveRc(fileSystem, path.dirname(filename));
110
+ var babelrcPath = null;
111
+ if (loaderOptions.babelrc !== false) {
112
+ babelrcPath = exists(fileSystem, loaderOptions.babelrc) ? loaderOptions.babelrc : resolveRc(fileSystem, path.dirname(filename));
113
+ }
111
114
 
112
115
  if (babelrcPath) {
113
116
  this.addDependency(babelrcPath);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "babel-loader",
3
- "version": "7.1.0",
3
+ "version": "7.1.1",
4
4
  "description": "babel module loader for webpack",
5
5
  "files": [
6
6
  "lib"
@@ -28,11 +28,11 @@
28
28
  "babel-preset-env": "^1.2.0",
29
29
  "babel-register": "^6.18.0",
30
30
  "cross-env": "^5.0.0",
31
- "eslint": "^3.8.1",
31
+ "eslint": "^4.1.0",
32
32
  "eslint-config-babel": "^7.0.0",
33
33
  "eslint-plugin-flowtype": "^2.25.0",
34
34
  "eslint-plugin-prettier": "^2.1.2",
35
- "husky": "^0.13.2",
35
+ "husky": "^0.14.0",
36
36
  "lint-staged": "^4.0.0",
37
37
  "nyc": "^11.0.1",
38
38
  "prettier": "^1.2.2",