When setting the path for jQuery when I use:
require.config({ paths: { 'jQuery': './libs/jquery-1.8.0.min' } });
Then:
define(['jQuery'], function($) { console.log($); };
$ will be undefined.
However, if I use:
require.config({ paths: { 'jQuery': './libs/jquery-1.8.0.min' } });
Then:
define(['jQuery'], function($) { console.log($); };
Everything works great fine.
What is the problem with jQuery alias definition with jQuery ?
Kay
source share