Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
pbowyer opened this issue Feb 19, 2024 · 0 comments
Open

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

pbowyer opened this issue Feb 19, 2024 · 0 comments

Comments

@pbowyer
Copy link

pbowyer commented Feb 19, 2024

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#1690 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant