Last active
August 29, 2015 13:59
-
-
Save shadowmint/10609103 to your computer and use it in GitHub Desktop.
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(["require", "exports", 'jquery'], function(require, exports, $) { | |
requirejs.config({ baseUrl: "Scripts", paths: { jquery: "jquery-1.10.2" } }); // <--- Never gets used | |
$('#hello').click(); // <--- Won't work, because jquery won't be resolve to the right path | |
}); |
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
declare var requirejs; | |
requirejs.config({ baseUrl: "Scripts", paths: { jquery: "jquery-1.10.2" } }); | |
import $ = require('jquery'); | |
$('#hello').click(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment