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

feat: Support loading ESM modules using ui.script #2331 #2332

Merged
merged 2 commits into from
May 21, 2024
Merged

Conversation

marek-mihok
Copy link
Contributor

@marek-mihok marek-mihok commented May 15, 2024

The PR fulfills these requirements: (check all the apply)

  • It's submitted to the main branch.
  • When resolving a specific issue, it's referenced in the PR's title (e.g. feat: Add a button #xxx, where "xxx" is the issue number).
  • When resolving a specific issue, the PR description includes Closes #xxx, where "xxx" is the issue number.
  • If changes were made to ui folder, unit tests (make test) still pass.
  • New/updated tests are included

Adds type attribute to ui.script(). Tested manually - it loads JavaScript modules properly when type="module" is specified.

Closes #2331

@marek-mihok marek-mihok marked this pull request as ready for review May 17, 2024 15:37
Copy link
Collaborator

@mturoci mturoci left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, good job @marek-mihok!

@mturoci mturoci merged commit 5a1953f into main May 21, 2024
@mturoci mturoci deleted the feat/issue-2331 branch May 21, 2024 07:19
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

Successfully merging this pull request may close these issues.

Unable to load ESM modules using ui.script
2 participants