Permalink
Browse files

Merge pull request #459 from jason0x43/master

Update wrapper to prevent unintended circular dependencies
  • Loading branch information...
2 parents acc6889 + 351ca4c commit 1ffccf7c1084cabd72ee775d6c235c1759df1911 @jonathanong jonathanong committed Jan 14, 2014
Showing with 1 addition and 1 deletion.
  1. +1 −1 bin/component-build
View
@@ -122,7 +122,7 @@ builder.build(function(err, obj){
'if (typeof exports == "object") {',
' module.exports = require("' + conf.name + '");',
'} else if (typeof define == "function" && define.amd) {',
- ' define(function(){ return require("' + conf.name + '"); });',
+ ' define([], function(){ return require("' + conf.name + '"); });',
'} else {',
' this["' + name + '"] = require("' + conf.name + '");',
'}'

0 comments on commit 1ffccf7

Please sign in to comment.