You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey, I'm not sure why this is happening but my first question would be why are you running this against uglified code? The intention of this package to convert source code written in AMD format to ES6 style imports as a one-time operation to help with migration from the former to the latter.
Here at Luciad, we are currently in the process of moving our LuciadRIA library away from AMD to ES6. And the code that we ship to our customers is minified.
My first attempts to use this project were done on one of our official releases. And, because this code was minified, it produced incorrect output.
Also, to make our code fully ES6-compatible, I will need to strip out all AMD-specific code, such as require.toUrl or the "exports" module identifier (as they don't have ES6 equivalent) before I convert all of our dev code to ES6. And not being able to use our release for testing makes this quite a painful process.
Take the following AMD module :
This module is succesfully converted to the following format :
However, consider the same code, but uglified :
If I now try to convert to ES6 modules, it produces the following incorrect output :
The text was updated successfully, but these errors were encountered: