Skip to content

Make impossible to use not supported options from manifest for specific browser. #2301

Description

@PatrykKuniczak

I mean instead of adding comments like

/**
* Firefox only. Defines the part of the browser in which the button is
* initially placed.
*
* @see https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/manifest.json/action#default_area
*/

We should create discriminator, which trims not available options for specific target and inteliSense won't even suggest it to user.

That's big issue, but it's valuable to do it someday.

Activity

  1. added
    pkg/wxt
    on Apr 24, 2026
  2. PatrykKuniczak commented on May 1, 2026

    @PatrykKuniczak
    CollaboratorAuthor

    @aklinker1 Are you think it's good idea to add v1 milestone here?

  3. aklinker1 commented on Jun 28, 2026

    @aklinker1
    Member

    I don't think this is WXT's responsibility. It's way too many edge cases, I'm not willing to maintain that.

    If you want to create a POC for a sort of manfiest linter, feel free to make something and propose it to me. But I don't want the core WXT package to be responsible for this.

  4. PatrykKuniczak commented on Jun 29, 2026

    @PatrykKuniczak
    CollaboratorAuthor

    @aklinker1 Let's leave this one open for now.
    If we'll have more maintainers someday(I hope), maybe we'll able able to handle that.

    This really can be a game changer for newbies and not only, but that's massing update.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

contribution welcomepkg/wxt

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions