We want to be able to debug bugs in Popups in production. Right now we cannot easily do that and this small change will make that possible.
.map is the default output extension for source-map files in webpack. Since that extension is not whitelisted in production the requests fail when opening devtools, see https://ca.wikipedia.org/w/extensions/Popups/resources/dist/index.js.map
In reality, there is no specific extension for source-map files, and .map is used by convention.
Let's change the extension of the source map files to a whitelisted extension like .json so that we can debug original sources in production.
Context:
AC
- Opening devtools and inspecting the sources you can see the original popups src/ files
- https://ca.wikipedia.org/w/extensions/Popups/resources/dist/index.js.map or equivalent request actually returns content

