Skip to content

Instantly share code, notes, and snippets.

@ralt
Created November 22, 2012 12:46
Show Gist options
  • Save ralt/4131011 to your computer and use it in GitHub Desktop.
Save ralt/4131011 to your computer and use it in GitHub Desktop.
AMD vs CommonJS
define(['some', 'dep'], function(some, dep) {
'use strict';
some.code = dep();
});
'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