Sorry to bother you twice with minification related bug reports today (this one and https://phabricator.wikimedia.org/T351610).
Steps to replicate the issue (include links if applicable):
- Add the attached OpenLayers 6.15.1 JavaScript library scripts array of ResourceModules in extension.json
- This creates a JavaScript parsing error after minification: "Uncaught SyntaxError: "" string literal contains an unescaped line break
- When doing the same with &debug=true added to the URL, no error occurs.
What happens?:
The minified Javascript contains a line break in a string (line 342, column 1000 of minified.js) - here the relevant part:
()=>{throw new Error("old style JPEG compression is not supported.")}
What should have happened instead?:
There should be no line break in a string or the line break should be somehow escaped.
Software version (skip for WMF-hosted wikis like Wikipedia):
- MediaWiki 1.39.5
- It ships with minify 2.3.0
Other information (browser name/version, screenshots, etc.):
- Input file (OpenLayers 6.15.1):
- Minified version: