Skip to content

Support Ignoring Certain Define() and/or Require() Methods

Compare
Choose a tag to compare
@gfranko gfranko released this 15 Oct 04:58
· 207 commits to master since this release

If you don't want one or more define() and require() methods to be removed by amdclean, then you must put a comment with only the words amdclean on the same line or one line above the method in question. For example, amdclean would not remove the define() method below:

// amdclean
define('example', [], function() {});