babel-loader 7.1.3 → 7.1.4

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/lib/index.js CHANGED
@@ -101,9 +101,7 @@ function passMetadata(s, context, metadata) {
101
101
  module.exports = function (source, inputSourceMap) {
102
102
  var _this = this;
103
103
 
104
- // Handle filenames (#106)
105
- var webpackRemainingChain = loaderUtils.getRemainingRequest(this).split("!");
106
- var filename = webpackRemainingChain[webpackRemainingChain.length - 1];
104
+ var filename = this.resourcePath;
107
105
 
108
106
  // Handle options
109
107
  var loaderOptions = loaderUtils.getOptions(this) || {};
package/lib/resolve-rc.js CHANGED
@@ -4,7 +4,7 @@ var path = require("path");
4
4
  var exists = require("./utils/exists");
5
5
 
6
6
  module.exports = function find(fileSystem, start) {
7
- var _arr = [".babelrc", ".babelrc.js", "package.json"];
7
+ var _arr = [".babelrc", "package.json"];
8
8
 
9
9
  for (var _i = 0; _i < _arr.length; _i++) {
10
10
  var fileName = _arr[_i];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "babel-loader",
3
- "version": "7.1.3",
3
+ "version": "7.1.4",
4
4
  "description": "babel module loader for webpack",
5
5
  "files": [
6
6
  "lib"