Skip to content

Instantly share code, notes, and snippets.

@dcousineau
Last active August 29, 2015 14:20
Show Gist options
  • Save dcousineau/1f8318fd8d140184ae37 to your computer and use it in GitHub Desktop.
Save dcousineau/1f8318fd8d140184ae37 to your computer and use it in GitHub Desktop.
define(['foo1', 'foo2'], function(Foo1, Foo2) {
var test = Foo1.test;
test(Foo2);
return {
results: 'result'
};
});
var test = require('foo1').test;
var Foo2 = require('foo2');
test(Foo2);
module.exports = {
results: 'result'
};
import {test} from 'foo1';
import Foo2 from 'foo2';
test(Foo2);
export default {
results: 'result'
};
/* Or...
export var results = 'result';
*/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment