I am trying to import rangeslider into an es6 class using import, however it always returns rangeslider is not a function
import * as rangeslider from 'rangeslider.js';
export class Layout {
testFunc() {
$(".rangepicker").rangeslider({
onSlide: function(position, value)
{
$(this).parent().find(".rangepicker-output").html(value + 'px');
}
});
}
}