-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Description
Subject of the issue
I know that it is "out of fashion", but I have my reasons. I want to use gridstack in the browser without any packaging tools. Actually, that's what the ES module demo tries to do, too.
The demo doesn't work, because the referenced '../dist/gridstack.js' isn't on the (demo) server. But even if it was, the demo wouldn't work, because all *.js files "import from './xxx'" without the js extension. This doesn't work in the browser. (Vue for example, includes a special "browser distribution" that has the proper imports.)
My workaround is to replace import/export references to './xxx' with './xxx.js' before putting the files on my server. This works, but is ugly at beast.
Expected behavior
The distribution should have a version that can directly be loaded in the browser.