Как подключить плагин remodal webpack

При подключении плагина remodal в в файл js не доступна функция remodal()

$(...).remodal is not a function

Мой код:

import { remodal } from 'remodal';
window.remodal = remodal;

$(function () {
    $(document).ready(function () {
        var socialModal = $('[data-remodal-id=social-modal]').remodal();
        socialModal.open();
    })
})

Ответы (0 шт):