Skip to content

Comments Are No Longer Being Stripped

Compare
Choose a tag to compare
@gfranko gfranko released this 17 Mar 00:37
· 111 commits to master since this release

Comments are no longer getting removed inside of module definitions.

AMD Code

// Comment above the module declaration
define('example', function () {
    // Comment inside the module declaration
    var example;
});

Standard JavaScript Code

// Comment above the module declaration
var example = function () {
    // Comment inside the module declaration
    var example;
}();