maykinmedia / dual-listbox

A simple dual listbox build in plain Javascript and some simple styling. (no other libraries of frameworks required)

Home Page:https://maykinmedia.github.io/dual-listbox/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Edit package.json to allow ES6 imports

darkbox opened this issue · comments

By default is not posible to import the library using an import declaration like import DualListbox from "dual-listbox";. To solve this problem I had to patch the package.json inside node_modules folder with:

"main": "dist/dual-listbox.js",
"module": "src/dual-listbox.js",

Once this is added everything works as expected.