New removeUseStricts Option and Minor Optimization Improvement
New removeUseStricts Option
- All
use strict
statements from your cleaned modules will now be removed by default. If you would like to keep them, then you must turn theremoveUseStricts
option tofalse
. Like this:
amdclean.clean({
'code': 'define("example", function() { "use strict"; var example = true; })',
'removeUseStricts': false
});
Optimization Improvement
- There has been a minor optimization improvement that will convert empty module definitions to
undefined
. For example:
AMD
define('example', function() {
});
Standard
var example = undefined;