Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Minified languages file assumes global "exports" variable exists

See original GitHub issue

The minified 1.7.0 file has the following on line 179, between the Hungarian and Italian translations:


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:open
  • Created 7 years ago
  • Comments:9 (7 by maintainers)

github_iconTop GitHub Comments

BenjaminVanRyseghemcommented, Apr 11, 2016


mmollickcommented, Apr 8, 2016

I don’t believe @BenjaminVanRyseghem has gotten around to making a patched release containing #143

Read more comments on GitHub >

github_iconTop Results From Across the Web

UglifyJS/ 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Post

No results found

github_iconTop Related Hashnode Post

No results found