diff --git a/package.json b/package.json index d69155a9..e31a97bf 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "babel-loader", - "version": "8.2.4", + "version": "8.2.5", "description": "babel module loader for webpack", "files": [ "lib" diff --git a/src/index.js b/src/index.js index 45f518da..41d4d46b 100644 --- a/src/index.js +++ b/src/index.js @@ -130,7 +130,7 @@ async function loader(source, inputSourceMap, overrides) { const programmaticOptions = Object.assign({}, loaderOptions, { filename, - inputSourceMap: inputSourceMap || undefined, + inputSourceMap: inputSourceMap || loaderOptions.inputSourceMap, // Set the default sourcemap behavior based on Webpack's mapping flag, // but allow users to override if they want.