You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Config to specify IIFE name or disable it altogether #2004
Before that, I want to run an alternative by you: would it make more sense to add this to defineContentScript (as an option like cssInjectionMode, matches, etc) instead of wxt.config.ts?
exportdefaultdefineContentScript({iffeName: "example",// OR `globalName: string | boolean`, letting people disable the iffe name in the output as well as give it a different name.main(){// ...}})
In this version, it would default to true and the name would be generated based on the content script name, but in the next major version would could change the default to false so a name isn't even generated in the first place.
Into main: Add the iifeName: boolean | string option and default it to true
Into major: Change the default to false
@jvineyoffered to implement this... 2 months ago, so I don't know if that offer still stands or if someone else can pick it up. I just created this issue to track it and make sure it's not forgotten since I think it's a really good idea.
Hey @aklinker1 , I’d like to pick this up if no one is currently working on it. I’m planning to start with the PR to main (adding iifeName: boolean | string defaulting to true). Let me know if that sounds good.
Hey @aklinker1 , I’d like to pick this up if no one is currently working on it. I’m planning to start with the PR to main (adding iifeName: boolean | string defaulting to true). Let me know if that sounds good.
I posted a draft of this a few days ago over here #2017. Any feedback welcome.
Activity
[-]I like this idea, I am willing to merge this as-is.[/-][+]Config to specify IIFE name or disable it altogether[/+]aklinker1 commentedon Dec 16, 2025
So this issue needs two PRs:
main: Add theiifeName: boolean | stringoption and default it totruemajor: Change the default tofalse@jviney offered to implement this... 2 months ago, so I don't know if that offer still stands or if someone else can pick it up. I just created this issue to track it and make sure it's not forgotten since I think it's a really good idea.
Riddhish1 commentedon Dec 31, 2025
Hey @aklinker1 , I’d like to pick this up if no one is currently working on it. I’m planning to start with the PR to
main(addingiifeName: boolean | stringdefaulting totrue). Let me know if that sounds good.jviney commentedon Dec 31, 2025
I posted a draft of this a few days ago over here #2017. Any feedback welcome.
aklinker1 commentedon Feb 11, 2026
@jviney PR looks really good, left a few comments with some small changes.
globalNamescript option default fromtruetofalse#2156