which one is the right
importway?
import "sortable.js";
// import { Sortable } from "sortable.js";
// import * as Sortable from "sortable.js";
https://www.npmjs.com/package/sortablejs
sortablejs!==sortable.js
{
"dependencies": {
"sortablejs": "^1.7.0"
}
}
// import "../libs/sortable";
// import "../libs/sortable.js";
// import * as Sortable from "../libs/sortable.js";// OK
// import "sortable";
// import { Sortable } from "sortable";// bug
// import { Sortable } from "sortablejs";// bug
import * as Sortable from "sortablejs";
// global export
window.Sortable = Sortable;
Most helpful comment
name bug
https://www.npmjs.com/package/sortablejs