Skip to content

Fix: allow event identifiers to be passed to dispatchEvent - #341

Open
jamieomaguire wants to merge 1 commit into
open-wc:masterfrom
jamieomaguire:fix/allow-event-variables-dispatch-event
Open

jamieomaguire wants to merge 1 commit into
open-wc:masterfrom
jamieomaguire:fix/allow-event-variables-dispatch-event

Conversation

@jamieomaguire

@jamieomaguire jamieomaguire commented Sep 8, 2026 •

Copy link
Copy Markdown

Issue can be seen here

If you call dispatchEvent(EVENT_NAME_VARIABLE), this will produce an event literally named EVENT_NAME_VARIABLE in the manifest file.

This change will skip events not named from a string literal, which means that @jsdoc comments can be used as the source of truth.

This PR is possibly a worse version of #330 😂 but its scoped to the event identifier problem, not event subclassing.

@netlify

netlify Bot commented Sep 8, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for custom-elements-manifest-analyzer ready!

Name Link
🔨 Latest commit e5da725
🔍 Latest deploy log https://app.netlify.com/projects/custom-elements-manifest-analyzer/deploys/6a9ff0f94289700008ac8bd0
😎 Deploy Preview https://deploy-preview-341--custom-elements-manifest-analyzer.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

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.

1 participant