Last active
August 29, 2015 14:20
-
-
Save dcousineau/1f8318fd8d140184ae37 to your computer and use it in GitHub Desktop.
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(['foo1', 'foo2'], function(Foo1, Foo2) { | |
var test = Foo1.test; | |
test(Foo2); | |
return { | |
results: 'result' | |
}; | |
}); |
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
var test = require('foo1').test; | |
var Foo2 = require('foo2'); | |
test(Foo2); | |
module.exports = { | |
results: 'result' | |
}; |
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
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