Hi,
There is probably something i do wrong, and i don't succeed to load the library with different way with requirejs.
I installed locally the package (npm install --save-dev), and tried to use it like this:
requirejs(['../node_modules/ilib/lib/ilib-full-dyn'], function(ilib) {
//here i can't access classes like ilib.Address.
})
I've tried to add some shim parameters like, and with this parameter, ilib is now = Address, but i would like to use more than only one class :
'../node_modules/ilib/lib/ilib-full-dyn' : {
exports: 'Address'
}
What do i do wrong ?
thanks for your help
dorian
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
There is probably something i do wrong, and i don't succeed to load the library with different way with requirejs.
I installed locally the package (npm install --save-dev), and tried to use it like this:
requirejs(['../node_modules/ilib/lib/ilib-full-dyn'], function(ilib) {
//here i can't access classes like ilib.Address.
})
I've tried to add some shim parameters like, and with this parameter, ilib is now = Address, but i would like to use more than only one class :
'../node_modules/ilib/lib/ilib-full-dyn' : {
exports: 'Address'
}
What do i do wrong ?
thanks for your help
dorian