did not support JavaScript closure
Closed this issue · 2 comments
xudejian commented
my code was generate by coffee with closure default
e.g:
(function() {
'use strict';
}).call(this);
after ngmin
(function () {
'use strict';
}.call(this));
it should be
(function () {
'use strict';
}).call(this);
xudejian commented
(function () {
'use strict';
}.call(this))
;
it should be
(function () {
'use strict';
})
.call(this);
btford commented
These are equivalent.
ngmin
parses and regenerates the source. What it generates is considered a best practice. There may be some other option you could pass to escodegen
that preserves your syntax, which you could use with ngmin
programmatically.