« Back to Index
Using RequireJS, switch from jQuery 2.0 down to 1.9.1
View original Gist on GitHub
requirejs-map.md
require.config({
baseUrl: './',
paths: {
'jquery': 'libs/jquery-2.0.js',
'jquery-1.9.1': 'libs/jquery-1.9.1.js'
}
});
if (isIE) { // https://github.com/Integralist/Robur/blob/master/Assets/Scripts/Utils/Checks/isIE.js
require.config({
map: {
// Any module in our application that sets `jquery` as a dependency, map the request to `jquery-1.9.1` instead
'*': {
'jquery': 'jquery-1.9.1'
}
}
});
}