RequireJS - czy jQuery rozróżnia wielkość liter?
Próbuję rozpocząć pracę z RequireJS i wpadam w denerwujący problem. . .
require.config({
baseUrl: 'app_content/scripts',
paths: {
// the left side is the module ID,
// the right side is the path to
// the jQuery file, relative to baseUrl.
// Also, the path should NOT include
// the '.js' file extension. This example
// is using jQuery 1.9.0 located at
// js/lib/jquery-1.9.0.js, relative to
// the HTML page.
'jQuery': 'lib/jQuery/jQuery-2.0.3'
}
});
To, używając wielkich literQ
, nie działa, ale jeśli zmienię to najquery
, to robi. Dotyczy to również moich wymaganych obszarów ...
<script type="text/javascript">
require(["jQuery"], function ($) {
console.log($);
});
</script>
To wracaundefined
, ale jeśli zmienię wszystko na prostejquery
, to działa.
Czy jest to oczekiwane zachowanie i czy mogę coś z tym zrobić?