New Upstream Release - node-babel-loader

Ready changes

Summary

Merged new upstream version: 9.1.2 (was: 9.1.0).

Diff

diff --git a/.github/ISSUE_TEMPLATE.md b/.github/ISSUE_TEMPLATE.md
new file mode 100644
index 0000000..032060a
--- /dev/null
+++ b/.github/ISSUE_TEMPLATE.md
@@ -0,0 +1,39 @@
+## **BEFORE YOU SUBMIT** please read the following:
+<!--
+If you have a support request or question please submit them to
+[StackOverflow](http://stackoverflow.com/questions/tagged/babeljs) using the tag
+`[babel]` or
+the [Babel Slack](babeljs.slack.com). Future support requests will be closed.
+-->
+*Delete what isn't applicable below*
+**I'm submitting a bug report**
+**I'm submitting a feature request**
+**I'm submitting a support request** => Please do not submit support request here, see note at the top of this template.
+
+
+**Webpack Version:**
+1.10.x/2.x
+
+**Babel Core Version**:
+6.x
+
+**Babel Loader Version**:
+5.4.x/6.2.x
+
+
+**Please tell us about your environment:**
+OSX 10.x / Linux / Windows 10
+
+**Current behavior:**
+
+
+**Expected/desired behavior:**
+
+
+* **If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem along with a gist/jsbin of your webpack configuration.**
+
+
+* **What is the expected behavior?**
+
+
+* **What is the motivation / use case for changing the behavior?**
diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md
new file mode 100644
index 0000000..14fc1bc
--- /dev/null
+++ b/.github/PULL_REQUEST_TEMPLATE.md
@@ -0,0 +1,36 @@
+**Please Read the [CONTRIBUTING Guidelines](https://github.com/babel/babel-loader/blob/main/CONTRIBUTING.md)**
+*In particular the portion on Commit Message Formatting*
+
+**Please check if the PR fulfills these requirements**
+- [ ] Tests for the changes have been added (for bug fixes / features)
+- [ ] Docs have been added / updated (for bug fixes / features)
+
+**What kind of change does this PR introduce?** (Bug fix, feature, docs update, ...)
+- [ ] Bugfix
+- [ ] Feature
+- [ ] Code style update (formatting, local variables)
+- [ ] Refactoring (no functional changes, no api changes)
+- [ ] Build related changes
+- [ ] CI related changes
+- [ ] Other... Please describe:
+
+**What is the current behavior?** (You can also link to an open issue here)
+
+
+
+**What is the new behavior?**
+
+
+
+**Does this PR introduce a breaking change?**
+- [ ] Yes
+- [ ] No
+
+If this PR contains a breaking change, please describe the following...
+
+* Impact:
+* Migration path for existing applications:
+* Github Issue(s) this is regarding:
+
+
+**Other information**:
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
new file mode 100644
index 0000000..e46a06d
--- /dev/null
+++ b/.github/workflows/ci.yml
@@ -0,0 +1,58 @@
+name: babel-loader
+
+on: [push, pull_request]
+
+permissions:
+  contents: read #  to fetch code (actions/checkout)
+
+jobs:
+  lint:
+    name: lint
+    runs-on: ubuntu-latest
+    steps:
+      - uses: actions/checkout@v2
+      - uses: actions/setup-node@v3
+        with:
+          node-version: latest
+      - name: Install dependencies
+        run: yarn
+      - name: Lint
+        run: yarn run lint
+  test:
+    name: Test - ${{ matrix.os }} - Node ${{ matrix.node-version }}, Webpack ${{ matrix.webpack-version }}
+    strategy:
+      matrix:
+        os: [ubuntu-latest, windows-latest]
+        node-version: [14, 16, 18]
+        webpack-version: ['5']
+        include:
+          - node-version: "14.15.0" # The minimum supported node version
+            webpack-version: latest
+            os: ubuntu-latest
+          - node-version: latest
+            webpack-version: latest
+            os: ubuntu-latest
+            coverage: true
+    runs-on: ${{ matrix.os }}
+    steps:
+      - uses: actions/checkout@v2
+      - name: Use Node.js ${{ matrix.node-version }}
+        uses: actions/setup-node@v3
+        with:
+          node-version: ${{ matrix.node-version }}
+      - name: Install dependencies
+        run: yarn
+      - name: Install webpack ${{ matrix.webpack-version }}
+        run: yarn add -D webpack@${{ matrix.webpack-version }}
+      - name: Build babel-loader
+        run: yarn run build
+        env:
+          BABEL_ENV: test
+      - name: Run tests for webpack version ${{ matrix.webpack-version }}
+        run: yarn test-only
+      - name: Submit coverage data to codecov
+        uses: codecov/codecov-action@v1
+        if: ${{ matrix.coverage }}
+        with:
+          token: ${{ secrets.CODECOV_TOKEN }}
+
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..4757986
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,11 @@
+.nyc_output
+coverage
+lib
+node_modules
+npm-debug.log
+test/output
+.yarn/*
+!.yarn/releases
+.pnp.*
+.vscode
+scripts/test-legacy-source/output
diff --git a/debian/changelog b/debian/changelog
index a689854..f4f1644 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,9 @@
+node-babel-loader (9.1.2-1) UNRELEASED; urgency=low
+
+  * New upstream release.
+
+ -- Debian Janitor <janitor@jelmer.uk>  Thu, 18 May 2023 21:44:09 -0000
+
 node-babel-loader (9.1.0-3) unstable; urgency=medium
 
   * Team upload
diff --git a/debian/patches/fix-test-for-webpack5-with-tape.patch b/debian/patches/fix-test-for-webpack5-with-tape.patch
index 7cd51a6..b54dc8e 100644
--- a/debian/patches/fix-test-for-webpack5-with-tape.patch
+++ b/debian/patches/fix-test-for-webpack5-with-tape.patch
@@ -5,9 +5,11 @@ Bug-Debian: https://bugs.debian.org/1011804
 Forwarded: not-needed
 Last-Update: 2022-05-31
 
---- a/test/sourcemaps.test.js
-+++ b/test/sourcemaps.test.js
-@@ -123,10 +123,6 @@
+Index: node-babel-loader.git/test/sourcemaps.test.js
+===================================================================
+--- node-babel-loader.git.orig/test/sourcemaps.test.js
++++ node-babel-loader.git/test/sourcemaps.test.js
+@@ -123,10 +123,6 @@ test("should output webpack's sourcemap
            const mapObj = JSON.parse(data.toString());
  
            if (isWebpack5) {
@@ -18,7 +20,7 @@ Last-Update: 2022-05-31
  
              // Ensure that the map contains the original code, not the compiled src.
              t.notok(mapObj.sourcesContent[3].includes("__esModule"));
-@@ -239,26 +235,6 @@
+@@ -239,26 +235,6 @@ test("should disable sourcemap output wi
        if (map.length > 0) {
          fs.readFile(path.resolve(context.directory, map[0]), (err, data) => {
            t.is(err, null);
@@ -45,7 +47,7 @@ Last-Update: 2022-05-31
            t.end();
          });
        }
-@@ -303,25 +279,6 @@
+@@ -303,25 +279,6 @@ test("should disable sourcemap output wi
        if (map.length > 0) {
          fs.readFile(path.resolve(context.directory, map[0]), (err, data) => {
            t.is(err, null);
diff --git a/debian/patches/replace-ava-by-tape.patch b/debian/patches/replace-ava-by-tape.patch
index 0b198b5..af27be0 100644
--- a/debian/patches/replace-ava-by-tape.patch
+++ b/debian/patches/replace-ava-by-tape.patch
@@ -3,8 +3,10 @@ Author: Yadd <yadd@debian.org>
 Forwarded: not-needed
 Last-Update: 2022-11-04
 
---- a/test/cache.test.js
-+++ b/test/cache.test.js
+Index: node-babel-loader.git/test/cache.test.js
+===================================================================
+--- node-babel-loader.git.orig/test/cache.test.js
++++ node-babel-loader.git/test/cache.test.js
 @@ -1,9 +1,9 @@
 -import test from "ava";
 -import fs from "fs";
@@ -21,7 +23,7 @@ Last-Update: 2022-11-04
  
  const defaultCacheDir = path.join(
    __dirname,
-@@ -31,31 +31,29 @@
+@@ -31,31 +31,29 @@ const globalConfig = {
  const UNCOMPRESSED_CACHE_FILE_REGEX = /^[0-9a-f]{32}(?:[0-9a-f]{32})?\.json$/;
  const CACHE_FILE_REGEX = /^[0-9a-f]{32}(?:[0-9a-f]{32})?\.json\.gz$/;
  
@@ -66,7 +68,7 @@ Last-Update: 2022-11-04
      },
      module: {
        rules: [
-@@ -64,7 +62,7 @@
+@@ -64,7 +62,7 @@ test.cb("should output files to cache di
            loader: babelLoader,
            exclude: /node_modules/,
            options: {
@@ -75,7 +77,7 @@ Last-Update: 2022-11-04
              presets: ["@babel/preset-env"],
            },
          },
-@@ -77,20 +75,21 @@
+@@ -77,20 +75,21 @@ test.cb("should output files to cache di
      t.deepEqual(stats.compilation.errors, []);
      t.deepEqual(stats.compilation.warnings, []);
  
@@ -102,7 +104,7 @@ Last-Update: 2022-11-04
        },
        module: {
          rules: [
-@@ -117,18 +116,19 @@
+@@ -117,18 +116,19 @@ test.serial.cb(
  
          t.is(err, null);
          t.true(files.length > 0);
@@ -125,7 +127,7 @@ Last-Update: 2022-11-04
        },
        module: {
          rules: [
-@@ -154,18 +154,19 @@
+@@ -154,18 +154,19 @@ test.serial.cb(
  
          t.is(err, null);
          t.true(files.length > 0);
@@ -148,7 +150,7 @@ Last-Update: 2022-11-04
        },
        module: {
          rules: [
-@@ -193,16 +194,17 @@
+@@ -193,16 +194,17 @@ test.serial.cb(
          t.is(err, null);
  
          t.true(files.length > 0);
@@ -169,7 +171,7 @@ Last-Update: 2022-11-04
      },
      module: {
        rules: [
-@@ -211,7 +213,7 @@
+@@ -211,7 +213,7 @@ test.cb("should read from cache director
            loader: babelLoader,
            exclude: /node_modules/,
            options: {
@@ -178,7 +180,7 @@ Last-Update: 2022-11-04
              presets: ["@babel/preset-env"],
            },
          },
-@@ -228,19 +230,20 @@
+@@ -228,19 +230,20 @@ test.cb("should read from cache director
  
      webpack(config, err => {
        t.is(err, null);
@@ -203,7 +205,7 @@ Last-Update: 2022-11-04
      },
      module: {
        rules: [
-@@ -249,7 +252,7 @@
+@@ -249,7 +252,7 @@ test.cb("should have one file per module
            loader: babelLoader,
            exclude: /node_modules/,
            options: {
@@ -212,7 +214,7 @@ Last-Update: 2022-11-04
              presets: ["@babel/preset-env"],
            },
          },
-@@ -262,19 +265,19 @@
+@@ -262,19 +265,19 @@ test.cb("should have one file per module
      t.deepEqual(stats.compilation.errors, []);
      t.deepEqual(stats.compilation.warnings, []);
  
@@ -237,7 +239,7 @@ Last-Update: 2022-11-04
        },
        module: {
          rules: [
-@@ -283,7 +286,7 @@
+@@ -283,7 +286,7 @@ test.cb("should generate a new file if t
              loader: babelLoader,
              exclude: /node_modules/,
              options: {
@@ -246,7 +248,7 @@ Last-Update: 2022-11-04
                cacheIdentifier: "a",
                presets: ["@babel/preset-env"],
              },
-@@ -293,7 +296,7 @@
+@@ -293,7 +296,7 @@ test.cb("should generate a new file if t
      }),
      Object.assign({}, globalConfig, {
        output: {
@@ -255,7 +257,7 @@ Last-Update: 2022-11-04
        },
        module: {
          rules: [
-@@ -302,7 +305,7 @@
+@@ -302,7 +305,7 @@ test.cb("should generate a new file if t
              loader: babelLoader,
              exclude: /node_modules/,
              options: {
@@ -264,7 +266,7 @@ Last-Update: 2022-11-04
                cacheIdentifier: "b",
                presets: ["@babel/preset-env"],
              },
-@@ -321,22 +324,22 @@
+@@ -321,22 +324,22 @@ test.cb("should generate a new file if t
        counter -= 1;
  
        if (!counter) {
@@ -292,7 +294,7 @@ Last-Update: 2022-11-04
        },
        module: {
          rules: [
-@@ -345,7 +348,7 @@
+@@ -345,7 +348,7 @@ test.cb("should allow to specify the .ba
              loader: babelLoader,
              exclude: /node_modules/,
              options: {
@@ -301,7 +303,7 @@ Last-Update: 2022-11-04
                extends: path.join(__dirname, "fixtures/babelrc"),
                babelrc: false,
                presets: ["@babel/preset-env"],
-@@ -357,7 +360,7 @@
+@@ -357,7 +360,7 @@ test.cb("should allow to specify the .ba
      Object.assign({}, globalConfig, {
        entry: path.join(__dirname, "fixtures/constant.js"),
        output: {
@@ -310,7 +312,7 @@ Last-Update: 2022-11-04
        },
        module: {
          rules: [
-@@ -366,7 +369,7 @@
+@@ -366,7 +369,7 @@ test.cb("should allow to specify the .ba
              loader: babelLoader,
              exclude: /node_modules/,
              options: {
@@ -319,7 +321,7 @@ Last-Update: 2022-11-04
                presets: ["@babel/preset-env"],
              },
            },
-@@ -382,10 +385,8 @@
+@@ -382,10 +385,8 @@ test.cb("should allow to specify the .ba
      t.deepEqual(multiStats.stats[1].compilation.errors, []);
      t.deepEqual(multiStats.stats[1].compilation.warnings, []);
  
@@ -331,8 +333,10 @@ Last-Update: 2022-11-04
      });
    });
  });
---- a/test/fixtures/basic.js
-+++ b/test/fixtures/basic.js
+Index: node-babel-loader.git/test/fixtures/basic.js
+===================================================================
+--- node-babel-loader.git.orig/test/fixtures/basic.js
++++ node-babel-loader.git/test/fixtures/basic.js
 @@ -1,6 +1,6 @@
  /*jshint esnext:true*/
  
@@ -341,14 +345,16 @@ Last-Update: 2022-11-04
  
  class App {
    constructor(arg='test') {
-@@ -8,4 +8,4 @@
+@@ -8,4 +8,4 @@ class App {
    }
  }
  
 -export default App;
 +module.exports = App;
---- a/test/fixtures/import.js
-+++ b/test/fixtures/import.js
+Index: node-babel-loader.git/test/fixtures/import.js
+===================================================================
+--- node-babel-loader.git.orig/test/fixtures/import.js
++++ node-babel-loader.git/test/fixtures/import.js
 @@ -1,7 +1,7 @@
  /*jshint esnext:true*/
  
@@ -359,36 +365,42 @@ Last-Update: 2022-11-04
  
 -export default test;
 +module.exports = test;
---- a/test/fixtures/metadata.js
-+++ b/test/fixtures/metadata.js
+Index: node-babel-loader.git/test/fixtures/metadata.js
+===================================================================
+--- node-babel-loader.git.orig/test/fixtures/metadata.js
++++ node-babel-loader.git/test/fixtures/metadata.js
 @@ -1,4 +1,4 @@
 -import {defineMessages} from 'react-intl';
 +const {defineMessages} = require('react-intl');
  class App {
    constructor(arg='test') {
      var m = defineMessages({
-@@ -12,4 +12,4 @@
+@@ -12,4 +12,4 @@ class App {
    }
  }
  
 -export default App;
 +module.exports = App;
---- a/test/fixtures/metadataErr.js
-+++ b/test/fixtures/metadataErr.js
+Index: node-babel-loader.git/test/fixtures/metadataErr.js
+===================================================================
+--- node-babel-loader.git.orig/test/fixtures/metadataErr.js
++++ node-babel-loader.git/test/fixtures/metadataErr.js
 @@ -1,4 +1,4 @@
 -import {defineMessages} from 'react-intl';
 +const {defineMessages} = require('react-intl');
  class App {
    constructor(arg='test') {
      var m = defineMessages({
-@@ -13,4 +13,4 @@
+@@ -13,4 +13,4 @@ class App {
    }
  }
  
 -export default App;
 +module.exports = App;
---- a/test/fixtures/syntax.js
-+++ b/test/fixtures/syntax.js
+Index: node-babel-loader.git/test/fixtures/syntax.js
+===================================================================
+--- node-babel-loader.git.orig/test/fixtures/syntax.js
++++ node-babel-loader.git/test/fixtures/syntax.js
 @@ -1,6 +1,6 @@
  /*jshint esnext:true*/
  
@@ -397,14 +409,16 @@ Last-Update: 2022-11-04
  
  class App {
    constructor(arg='test') {
-@@ -9,4 +9,4 @@
+@@ -9,4 +9,4 @@ class App {
    }
  }
  
 -export default App;
 +module.exports = App;
---- a/test/helpers/createTestDirectory.js
-+++ b/test/helpers/createTestDirectory.js
+Index: node-babel-loader.git/test/helpers/createTestDirectory.js
+===================================================================
+--- node-babel-loader.git.orig/test/helpers/createTestDirectory.js
++++ node-babel-loader.git/test/helpers/createTestDirectory.js
 @@ -1,8 +1,8 @@
 -import path from "path";
 -import fs from "fs";
@@ -418,16 +432,20 @@ Last-Update: 2022-11-04
    const directory = path.join(baseDirectory, escapeDirectory(testTitle));
  
    rimraf(directory, err => {
---- a/test/helpers/isWebpack5.js
-+++ b/test/helpers/isWebpack5.js
+Index: node-babel-loader.git/test/helpers/isWebpack5.js
+===================================================================
+--- node-babel-loader.git.orig/test/helpers/isWebpack5.js
++++ node-babel-loader.git/test/helpers/isWebpack5.js
 @@ -1,3 +1,3 @@
 -import webpack from "webpack";
 +const webpack = require("webpack");
  
 -export default webpack.version[0] === "5";
 +module.exports = webpack.version[0] === "5";
---- a/test/loader.test.js
-+++ b/test/loader.test.js
+Index: node-babel-loader.git/test/loader.test.js
+===================================================================
+--- node-babel-loader.git.orig/test/loader.test.js
++++ node-babel-loader.git/test/loader.test.js
 @@ -1,10 +1,10 @@
 -import test from "ava";
 -import fs from "fs";
@@ -446,7 +464,7 @@ Last-Update: 2022-11-04
  
  const outputDir = path.join(__dirname, "output/loader");
  const babelLoader = path.join(__dirname, "../lib");
-@@ -28,22 +28,23 @@
+@@ -28,22 +28,23 @@ const globalConfig = {
    },
  };
  
@@ -479,7 +497,7 @@ Last-Update: 2022-11-04
      },
    });
  
-@@ -52,10 +53,11 @@
+@@ -52,10 +53,11 @@ test.cb("should transpile the code snipp
      t.deepEqual(stats.compilation.errors, []);
      t.deepEqual(stats.compilation.warnings, []);
  
@@ -493,7 +511,7 @@ Last-Update: 2022-11-04
          t.is(err, null);
          const test = "var App = function App(arg)";
          const subject = data.toString();
-@@ -64,15 +66,18 @@
+@@ -64,15 +66,18 @@ test.cb("should transpile the code snipp
  
          t.end();
        });
@@ -514,7 +532,7 @@ Last-Update: 2022-11-04
      },
    });
  
-@@ -80,17 +85,17 @@
+@@ -80,17 +85,17 @@ test.cb("should not throw error on synta
      t.true(stats.compilation.errors.length === 1);
      t.true(stats.compilation.errors[0] instanceof Error);
      t.deepEqual(stats.compilation.warnings, []);
@@ -536,7 +554,7 @@ Last-Update: 2022-11-04
      },
      module: {
        rules: [
-@@ -107,18 +112,18 @@
+@@ -107,18 +112,18 @@ test.cb("should not throw without config
      t.is(err, null);
      t.deepEqual(stats.compilation.errors, []);
      t.deepEqual(stats.compilation.warnings, []);
@@ -559,7 +577,7 @@ Last-Update: 2022-11-04
        },
      });
      webpack(config, (err, stats) => {
-@@ -126,17 +131,18 @@
+@@ -126,17 +131,18 @@ test.cb(
        t.deepEqual(stats.compilation.warnings, []);
        const moduleBuildError = stats.compilation.errors[0];
        const babelLoaderError = moduleBuildError.error;
@@ -582,7 +600,7 @@ Last-Update: 2022-11-04
      },
      module: {
        rules: [
-@@ -178,19 +184,20 @@
+@@ -178,19 +184,20 @@ test.cb("should load ESM config files",
        t.true(babelLoaderError instanceof Error);
        // Error messages are slightly different between versions:
        // "modules aren't supported" or "modules not supported".
@@ -607,15 +625,17 @@ Last-Update: 2022-11-04
      },
      module: {
        rules: [
-@@ -216,6 +223,5 @@
+@@ -216,6 +223,5 @@ test.cb("should track external dependenc
    webpack(config, (err, stats) => {
      t.true(stats.compilation.fileDependencies.has(dep));
      t.deepEqual(stats.compilation.warnings, []);
 -    t.end();
    });
  });
---- a/test/metadata.test.js
-+++ b/test/metadata.test.js
+Index: node-babel-loader.git/test/metadata.test.js
+===================================================================
+--- node-babel-loader.git.orig/test/metadata.test.js
++++ node-babel-loader.git/test/metadata.test.js
 @@ -1,10 +1,10 @@
 -import test from "ava";
 -import fs from "fs";
@@ -634,7 +654,7 @@ Last-Update: 2022-11-04
  
  const ReactIntlPlugin = require("react-intl-webpack-plugin");
  
-@@ -38,70 +38,23 @@
+@@ -38,70 +38,23 @@ const globalConfig = {
    },
  };
  
@@ -715,7 +735,7 @@ Last-Update: 2022-11-04
        filename: "[id].metadata.js",
      },
      entry: "./test/fixtures/metadataErr.js",
-@@ -111,53 +64,5 @@
+@@ -111,53 +64,5 @@ test.cb("should throw error", t => {
      t.is(err, null);
      t.true(stats.compilation.errors.length > 0);
      t.deepEqual(stats.compilation.warnings, []);
@@ -769,8 +789,10 @@ Last-Update: 2022-11-04
 -    });
    });
  });
---- a/test/options.test.js
-+++ b/test/options.test.js
+Index: node-babel-loader.git/test/options.test.js
+===================================================================
+--- node-babel-loader.git.orig/test/options.test.js
++++ node-babel-loader.git/test/options.test.js
 @@ -1,9 +1,9 @@
 -import test from "ava";
 -import fs from "fs";
@@ -787,7 +809,7 @@ Last-Update: 2022-11-04
  
  const outputDir = path.join(__dirname, "output/options");
  const babelLoader = path.join(__dirname, "../lib");
-@@ -24,22 +24,22 @@
+@@ -24,22 +24,22 @@ const globalConfig = {
    },
  };
  
@@ -819,8 +841,10 @@ Last-Update: 2022-11-04
      },
      module: {
        rules: [
---- a/test/sourcemaps.test.js
-+++ b/test/sourcemaps.test.js
+Index: node-babel-loader.git/test/sourcemaps.test.js
+===================================================================
+--- node-babel-loader.git.orig/test/sourcemaps.test.js
++++ node-babel-loader.git/test/sourcemaps.test.js
 @@ -1,10 +1,10 @@
 -import test from "ava";
 -import fs from "fs";
@@ -839,7 +863,7 @@ Last-Update: 2022-11-04
  
  const outputDir = path.join(__dirname, "output/sourcemaps");
  const babelLoader = path.join(__dirname, "../lib");
-@@ -22,23 +22,23 @@
+@@ -22,23 +22,23 @@ const globalConfig = {
    },
  };
  
@@ -872,7 +896,7 @@ Last-Update: 2022-11-04
      },
      module: {
        rules: [
-@@ -59,31 +59,35 @@
+@@ -59,31 +59,35 @@ test.cb("should output webpack's sourcem
      t.deepEqual(stats.compilation.errors, []);
      t.deepEqual(stats.compilation.warnings, []);
  
@@ -914,7 +938,7 @@ Last-Update: 2022-11-04
      },
      module: {
        rules: [
-@@ -105,7 +109,7 @@
+@@ -105,7 +109,7 @@ test.cb("should output webpack's sourcem
      t.deepEqual(stats.compilation.errors, []);
      t.deepEqual(stats.compilation.warnings, []);
  
@@ -923,7 +947,7 @@ Last-Update: 2022-11-04
        t.is(err, null);
  
        const map = files.filter(file => file.includes(".map"));
-@@ -113,7 +117,7 @@
+@@ -113,7 +117,7 @@ test.cb("should output webpack's sourcem
        t.true(map.length > 0);
  
        if (map.length > 0) {
@@ -932,7 +956,7 @@ Last-Update: 2022-11-04
            t.is(err, null);
  
            const mapObj = JSON.parse(data.toString());
-@@ -125,12 +129,12 @@
+@@ -125,12 +129,12 @@ test.cb("should output webpack's sourcem
              );
  
              // Ensure that the map contains the original code, not the compiled src.
@@ -947,7 +971,7 @@ Last-Update: 2022-11-04
            }
            t.end();
          });
-@@ -139,11 +143,12 @@
+@@ -139,11 +143,12 @@ test.cb("should output webpack's sourcem
    });
  });
  
@@ -962,7 +986,7 @@ Last-Update: 2022-11-04
        devtoolModuleFilenameTemplate: "=!=!=!=[absolute-resource-path]=!=!=!=",
      },
      module: {
-@@ -165,7 +170,7 @@
+@@ -165,7 +170,7 @@ test.cb("should output webpack's devtool
      t.deepEqual(stats.compilation.errors, []);
      t.deepEqual(stats.compilation.warnings, []);
  
@@ -971,7 +995,7 @@ Last-Update: 2022-11-04
        t.is(err, null);
  
        const map = files.filter(file => file.includes(".map"));
-@@ -173,12 +178,12 @@
+@@ -173,12 +178,12 @@ test.cb("should output webpack's devtool
        t.true(map.length > 0);
  
        if (map.length > 0) {
@@ -987,7 +1011,7 @@ Last-Update: 2022-11-04
              new RegExp(
                JSON.stringify(
                  `=!=!=!=${globalConfig.entry.replace(
-@@ -187,7 +192,7 @@
+@@ -187,7 +192,7 @@ test.cb("should output webpack's devtool
                    "(?:/|\\\\)",
                  )}=!=!=!=`,
                ),
@@ -996,7 +1020,7 @@ Last-Update: 2022-11-04
            );
  
            t.end();
-@@ -197,11 +202,12 @@
+@@ -197,11 +202,12 @@ test.cb("should output webpack's devtool
    });
  });
  
@@ -1011,7 +1035,7 @@ Last-Update: 2022-11-04
      },
      module: {
        rules: [
-@@ -223,7 +229,7 @@
+@@ -223,7 +229,7 @@ test.cb("should disable sourcemap output
      t.deepEqual(stats.compilation.errors, []);
      t.deepEqual(stats.compilation.warnings, []);
  
@@ -1020,7 +1044,7 @@ Last-Update: 2022-11-04
        t.is(err, null);
  
        const map = files.filter(file => file.includes(".map"));
-@@ -231,7 +237,7 @@
+@@ -231,7 +237,7 @@ test.cb("should disable sourcemap output
        t.true(map.length > 0);
  
        if (map.length > 0) {
@@ -1029,7 +1053,7 @@ Last-Update: 2022-11-04
            t.is(err, null);
  
            const mapObj = JSON.parse(data.toString());
-@@ -244,13 +250,13 @@
+@@ -244,13 +250,13 @@ test.cb("should disable sourcemap output
  
              // Ensure that the code contains Babel's compiled output, because
              // sourcemaps from Babel are disabled.
@@ -1045,7 +1069,7 @@ Last-Update: 2022-11-04
            }
  
            t.end();
-@@ -260,11 +266,12 @@
+@@ -260,11 +266,12 @@ test.cb("should disable sourcemap output
    });
  });
  
@@ -1060,7 +1084,7 @@ Last-Update: 2022-11-04
      },
      module: {
        rules: [
-@@ -286,7 +293,7 @@
+@@ -286,7 +293,7 @@ test.cb("should disable sourcemap output
      t.deepEqual(stats.compilation.errors, []);
      t.deepEqual(stats.compilation.warnings, []);
  
@@ -1069,7 +1093,7 @@ Last-Update: 2022-11-04
        t.is(err, null);
  
        const map = files.filter(file => file.includes(".map"));
-@@ -294,7 +301,7 @@
+@@ -294,7 +301,7 @@ test.cb("should disable sourcemap output
        t.true(map.length > 0);
  
        if (map.length > 0) {
@@ -1078,7 +1102,7 @@ Last-Update: 2022-11-04
            t.is(err, null);
  
            const mapObj = JSON.parse(data.toString());
-@@ -307,13 +314,12 @@
+@@ -307,13 +314,12 @@ test.cb("should disable sourcemap output
  
              // Ensure that the code contains Babel's compiled output, because
              // sourcemaps from Babel are disabled.
diff --git a/package.json b/package.json
index 0210ecf..aedffd7 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
 {
   "name": "babel-loader",
-  "version": "9.1.0",
+  "version": "9.1.2",
   "description": "babel module loader for webpack",
   "files": [
     "lib"
diff --git a/yarn.lock b/yarn.lock
index 007f146..03f1a2e 100644
--- a/yarn.lock
+++ b/yarn.lock
@@ -4815,11 +4815,11 @@ fsevents@~2.1.2:
   linkType: hard
 
 "json5@npm:^2.2.1":
-  version: 2.2.1
-  resolution: "json5@npm:2.2.1"
+  version: 2.2.3
+  resolution: "json5@npm:2.2.3"
   bin:
     json5: lib/cli.js
-  checksum: 74b8a23b102a6f2bf2d224797ae553a75488b5adbaee9c9b6e5ab8b510a2fc6e38f876d4c77dea672d4014a44b2399e15f2051ac2b37b87f74c0c7602003543b
+  checksum: 2a7436a93393830bce797d4626275152e37e877b265e94ca69c99e3d20c2b9dab021279146a39cdb700e71b2dd32a4cebd1514cd57cee102b1af906ce5040349
   languageName: node
   linkType: hard
 
@@ -5868,9 +5868,9 @@ fsevents@~2.1.2:
   linkType: hard
 
 "qs@npm:~6.5.2":
-  version: 6.5.2
-  resolution: "qs@npm:6.5.2"
-  checksum: 24af7b9928ba2141233fba2912876ff100403dba1b08b20c3b490da9ea6c636760445ea2211a079e7dfa882a5cf8f738337b3748c8bdd0f93358fa8881d2db8f
+  version: 6.5.3
+  resolution: "qs@npm:6.5.3"
+  checksum: 6f20bf08cabd90c458e50855559539a28d00b2f2e7dddcb66082b16a43188418cb3cb77cbd09268bcef6022935650f0534357b8af9eeb29bf0f27ccb17655692
   languageName: node
   linkType: hard
 

More details

Full run details

Historical runs