Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: babel/babel-loader
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v9.2.0
Choose a base ref
...
head repository: babel/babel-loader
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v9.2.1
Choose a head ref
  • 2 commits
  • 2 files changed
  • 2 contributors

Commits on Sep 16, 2024

  1. Avoid error on missing getLogger (v9) (#1045)

    nicolo-ribaudo authored Sep 16, 2024

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    5e5dd0c View commit details
  2. 9.2.1

    nicolo-ribaudo committed Sep 16, 2024

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    1a9240b View commit details
Showing with 5 additions and 2 deletions.
  1. +1 −1 package.json
  2. +4 −1 src/index.js
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "babel-loader",
"version": "9.2.0",
"version": "9.2.1",
"description": "babel module loader for webpack",
"files": [
"lib"
5 changes: 4 additions & 1 deletion src/index.js
Original file line number Diff line number Diff line change
@@ -53,7 +53,10 @@ function makeLoader(callback) {

async function loader(source, inputSourceMap, overrides) {
const filename = this.resourcePath;
const logger = this.getLogger("babel-loader");
const logger =
typeof this.getLogger === "function"
? this.getLogger("babel-loader")
: { debug: () => {} };

let loaderOptions = this.getOptions();
validateOptions(schema, loaderOptions, {