Permalink
Browse files

Add "use strict" to rollup wrapper function when strict is on

* Prevents lint error
  • Loading branch information...
1 parent a2e6fb3 commit 189ac186f59ce082780a314e97965ac365f5e433 @brianjmiller brianjmiller committed Sep 27, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/module.js
View
@@ -724,7 +724,7 @@ var _rollup = function (mod, name, options, callback) {
queue.read(files)
.concat()
.jsstamp({
- postfix: "YUI.add('" + modName + "', function (Y, NAME) {}, '@VERSION@'" + stringify(mod.config) + ");\n"
+ postfix: "YUI.add('" + modName + "', function (Y, NAME) {" + (options.strict ? '"use strict"; ' : "") + "}, '@VERSION@'" + stringify(mod.config) + ");\n"
})
.replace(replaceOptions)
.log('writing rollup file ' + path.join(fileName, fileName + '-debug.js'))

0 comments on commit 189ac18

Please sign in to comment.