New removeUseStricts Option and Minor Optimization Improvement
New removeUseStricts Option
- All
use strictstatements from your cleaned modules will now be removed by default. If you would like to keep them, then you must turn theremoveUseStrictsoption 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;