This is a minimal reproduction of an issue with addContextDependency in Webpack 5.
npm i
npm start
# will output '[!!!] Running txt-loader.js at...'
# edit source/index.js and save it
# '[!!!] Running txt-loader.js at...' even though the file was not changed
# edit source/index.js and save it
# now webpack will use the cache and not run the loader