10000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The issue is very straighforward. The angular dependencies are broken in the minified version of the library (v2.2.3).
I investigated a little and it looks like this is not a problem of the uglifier webpack plugin.
The problems lies in convertion from ES6 to ES5, that is, babel iseltf. From version 6.0 and above the code:
export default (args) => { ... }
transforms into:
exports.default = function (args) { ... }
instead of:
module.exports = function (args) { ... }
The angular modules injection are explicit, but they are using common js module syntax:
module.exports.$inject = ['args'];
So the dependencies are being injected to a wrong target, causing the whole problem.
The solution involves a change in the design of the whole module, so I think @nervgh should decide how to solve this.
This article explains in depth the problem and the posible solutions.
The text was updated successfully, but these errors were encountered:
Fixed: "Angular dependency injection broken in minified files (#631)"
c191050
@josencv thanks! Fixed in v2.3.1 😄
Sorry, something went wrong.
Thanks for the quick fix. Now works without problems.
You are welcome! Thank you for the informative issue!
No branches or pull requests
Uh oh!
There was an error while loading. Please reload this page.
The issue is very straighforward. The angular dependencies are broken in the minified version of the library (v2.2.3).
I investigated a little and it looks like this is not a problem of the uglifier webpack plugin.
The problems lies in convertion from ES6 to ES5, that is, babel iseltf. From version 6.0 and above the code:
transforms into:
instead of:
The angular modules injection are explicit, but they are using common js module syntax:
So the dependencies are being injected to a wrong target, causing the whole problem.
The solution involves a change in the design of the whole module, so I think @nervgh should decide how to solve this.
This article explains in depth the problem and the posible solutions.
The text was updated successfully, but these errors were encountered: