RequireJS - чувствителен ли регистр jQuery?
Я пытаюсь начать работу с RequireJS и сталкиваюсь с раздражающей проблемой. , ,
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'
}
});
Это, используя прописныеQ
, не работает, но если я поменяю его наjquery
, оно делает. Кроме того, это верно в моих необходимых областях ...
<script type="text/javascript">
require(["jQuery"], function ($) {
console.log($);
});
</script>
Это возвращаетundefined
, но если я все поменяю на прямуюjquery
, оно работает.
Это ожидаемое поведение, и могу ли я что-нибудь с этим сделать?