Pavel,

So you just manually add requirejs.config call in every module file that
has external AMD dependencies?
This is helpful - thanks a lot!

On Sat, Apr 9, 2016 at 3:47 PM, Pavel Chernyak <fjfal...@fjfalcon.ru> wrote:

> Greetings, Ilya.
> Here is my example for Yandex maps module. As you can see I define
> require.js config in module file.
>
> requirejs.config({ paths: { 'ymaps': '//api-maps.yandex.ru/2.1/?lang=ru-RU
> ',
> 'geolib': 'map/geolib.min' }, "shim": { 'ymaps': { exports: 'ymaps' },
> 'geolib' : { exports: 'geolib' } } }); define(["jquery", "ymaps",
> "geolib","./lodash.min","./graham_scan.min"], function ($, ymaps,geolib) {
> code... });
>
> Pavel Chernyak
>



-- 
Ilya Obshadko

Reply via email to