Skip to content

Conversation

@marcoferreiradev
Copy link

We identified inconsistent behavior in Deno Deploy related to dynamic imports using import.meta.resolve() with HTMX. The issue would mainly occur when making changes to files that performed dynamic imports or to the imported files themselves.

image
image

To ensure better stability, we added static imports in main.ts. This simple solution ensures that Deno Deploy's bundler correctly includes all necessary files while maintaining the existing dynamic loading functionality via HTMX without any logic changes.

Discord threads

@marcoferreiradev marcoferreiradev added the bug Something isn't working label Feb 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants