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
We inject a variable using angularJS, and re-use it later in the code. Without minification it works.
Problem is I can't supply too much information. Just taught i might tell you, you have a variable collission issue.
Actual Behavior
The minifier creates a function var n, and then inside the function where it is used a new local var n, which is undefined and assigns n to n, causing it to be undefined if minified.
However if we enable sourcemap-cheap-eval, it does work.
Code
This is var too complex or big with file-loaders etc. But for the terser it's at:
devtool: APP_ENV === 'development'
? 'cheap-module-eval-source-map' // Source maps + reference to source map file for development
: 'hidden-source-map', // Source maps without reference to source map file in original source for production
Expected Behavior
We inject a variable using angularJS, and re-use it later in the code. Without minification it works.
Problem is I can't supply too much information. Just taught i might tell you, you have a variable collission issue.
Actual Behavior
The minifier creates a function var n, and then inside the function where it is used a new local var n, which is undefined and assigns n to n, causing it to be undefined if minified.
However if we enable sourcemap-cheap-eval, it does work.
Code
This is var too complex or big with file-loaders etc. But for the terser it's at:
How Do We Reproduce?
I have no clue,
all i can tell you is this is our code
and this is the minified result
As you can see at the top, n is a top function argument
As you can see at the bottom in c.$onInit, loadData is injected here, var n is declared.
The text was updated successfully, but these errors were encountered: