Created
March 30, 2014 13:51
-
-
Save MiguelCastillo/9873073 to your computer and use it in GitHub Desktop.
Loading Tern module
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(["require", "exports", "module"], function (require, exports, module) { | |
"use strict"; | |
/* | |
* requirejs support in tern | |
*/ | |
var ternRequire = window.require.config({ | |
"baseUrl": require.toUrl("./tern/"), | |
"paths": { | |
"acorn": "node_modules/acorn" | |
}, | |
waitSeconds: 5 | |
}); | |
// Setup the dependencies for acorn... | |
ternRequire(["tern"], function(tern) { | |
console.log(tern); | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment