Skip to content

Instantly share code, notes, and snippets.

@shadowmint
Last active August 29, 2015 13:59
Show Gist options
  • Save shadowmint/10609103 to your computer and use it in GitHub Desktop.
Save shadowmint/10609103 to your computer and use it in GitHub Desktop.
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
});
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