Maybe a bit out of scope and a bit hard to implement, but if we have for example two files:
And from hashmark we get:
"replaceMap": {
"bundle.js": "bundle-e21d86.js",
"bundle.js.map": "bundle.js-ee7722.map"
}
And we run replaceinfiles it replaces this line in bundle.js: //# sourceMappingURL=bundle.js.map with bundle-e21d86.js not bundle.js-ee7722.map because it contains bundle.js although bundle.js.map is a better match.
Maybe a bit out of scope and a bit hard to implement, but if we have for example two files:
And from hashmark we get:
And we run replaceinfiles it replaces this line in bundle.js:
//# sourceMappingURL=bundle.js.mapwithbundle-e21d86.jsnotbundle.js-ee7722.mapbecause it contains bundle.js although bundle.js.map is a better match.