Last active
August 29, 2015 14:02
-
-
Save franklinjavier/eb090b9b564b25a137c0 to your computer and use it in GitHub Desktop.
Better way to require AMD modules - SUGAR “simplified CommonJS wrapper”
This file contains hidden or 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(function( require, exports ) { | |
| 'use strict'; | |
| var defaults = require('lodash-amd/modern/objects/defaults'), | |
| flatten = require('lodash-amd/modern/arrays/flatten'), | |
| commands = require('./plugins/core/commands'); | |
| ... | |
| // expose module API | |
| exports.Scribe = Scribe; | |
| }); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment