I'm trying to import the jQuery plugin jQuery.scrollTo with JSPM.
So far I installed it with
jspm install npm:jquery.scrollto
and now I'm trying to import it with
import $ from 'jquery';
import scrollTo from 'jquery.scrollto';
Now I'm only getting
$(...).scrollTo is not a function
errors.
I tried to shim it, but I never did it before and can't find a good explanation how to do it, if it is necessary. Can you help me or show me a good explanation when and how do I need to shim things?