Minified languages file assumes global "exports" variable exists
See original GitHub issueThe minified 1.7.0 file has the following on line 179, between the Hungarian and Italian translations:
exports["cs-CZ"]=require("./cs-CZ.js"),exports["da-DK"]=...
It includes quite a few languages - possibly all of them.
Since I am including the file statically, there is no exports
global variable. While I can work around it, I’m assuming it is an error just because of the odd placement in the generated file.
Issue Analytics
- State:
- Created 7 years ago
- Comments:9 (7 by maintainers)
Top Results From Across the Web
UglifyJS/README.md at master - GitHub
The files are parsed in the same global scope, that is, a reference from a file to some variable/function declared in another file...
Read more >Global Variable from Minified File is undefined in js files?
First I am loading the minified file and then I am loading the game.js file. ... so it would by default export Phaser...
Read more >Options - Babel.js
"module" - Parse the file using the ECMAScript Module grammar. Files are automatically strict, and import / export statements are allowed. "unambiguous" - ......
Read more >Modules, introduction - The Modern JavaScript Tutorial
js module. In other words, with modules we use import/export instead of relying on global variables. This is the correct variant:.
Read more >API - esbuild
The build API call operates on one or more files in the file system. ... For example, assume you have a file called...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
done
I don’t believe @BenjaminVanRyseghem has gotten around to making a patched release containing #143