Skip to content

Missing ES distribution that works in browser #2476

@mnlipp

Description

@mnlipp

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions