Skip to content

idiomorph-ext.js is not bundler-compatible #39

Open
@pbowyer

Description

Thanks for adding idiomorph.esm.js to the repository! However when using with htmx the idiomorph-ext.js version isn't able to be imported and make Idiomorph accessible in the script. The workarounds in bigskysoftware/htmx-extensions#128 don't work for this script.

As a workaround I imported the ESM version and then copied the extra function at the end into my script.

I think my favourite outcome would be to change idiomorph-ext.js to be only this bit of code, and then using HTMX with Idiomorph (without a bundler) would require 3 imports:

htmx.js
idiomorph.js
idiomorph-ext.js

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions