Created
November 22, 2012 12:46
-
-
Save ralt/4131011 to your computer and use it in GitHub Desktop.
AMD vs CommonJS
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
define(['some', 'dep'], function(some, dep) { | |
'use strict'; | |
some.code = dep(); | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict'; | |
var some = require('some'), | |
dep = require('dep'); | |
some.code = dep(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment