I use this code to config webpack 5:
const path = require('path');
module.exports = {
entry: './src/index.js',
output: {
path: path.resolve(__dirname, 'dist'),
filename: 'bundle.js',
},
devtool: "source-map"
};
and this is my index.js code,
const bar=require('./bar.js');
let a=1
console.log(a)
bar();
When debugging, I can not access the variable named "a"

Is this a bug of webpack? I remember its not like this when I worked with an earlier verison of webpack years ago.
