chore: fix typo in moduleid-compat-loader.js (#9776)

occurences -> occurrences
This commit is contained in:
Ikko Ashimine
2022-02-17 00:07:43 +09:00
committed by GitHub
parent 980eb213f9
commit 1601caff4e

View File

@ -6,7 +6,7 @@
module.exports = function (source, map) {
this.cacheable();
// Strips occurences of `moduleId: module.id,`, since it is no longer needed for webpack builds
// Strips occurrences of `moduleId: module.id,`, since it is no longer needed for webpack builds
const noModuleIdsSource = source.replace(/moduleId\:\s*module\.id\s*(\,)?/g, result =>
// Try to preserve char count so sourcemaps may remain intact
"/*" + result.substring(2, result.length - 2) + "*/"