Skip to content

Commit 79d65d0

Browse files
committed
Updated README
1 parent 073e532 commit 79d65d0

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -297,6 +297,15 @@ __Why would I use amdclean instead of Almond.js?__
297297

298298
- Although Almond is very small (~1k gzipped and minified), most JavaScript library authors do not want to have to include it in their library's source code. If you are not using an AMD plugin, then amdclean provides the benefit of AMD without increasing your library's file size.
299299

300+
__What if I don't want all define() and require() method calls to be removed?__
301+
302+
- 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:
303+
304+
```javascript
305+
// amdclean
306+
define('example', [], function() {});
307+
```
308+
300309

301310
## License
302311

0 commit comments

Comments
 (0)