We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I am importing and instantiating a worker in WXT, but the added iifeReturnValueName leads to accessing an undefined variable.
iifeReturnValueName
https://github.com/Justineo/wxt-repro
pnpm dev
And in the console you will see:
Uncaught ReferenceError: content is not defined
worker.ts is transformed into:
worker.ts
(function() { "use strict"; console.log("From worker"); content; })(); content;
Where content is not defined.
content
System: OS: macOS 14.6.1 CPU: (14) arm64 Apple M3 Max Memory: 52.42 MB / 36.00 GB Shell: 5.9 - /bin/zsh Binaries: Node: 22.13.0 - ~/.volta/tools/image/node/22.13.0/bin/node npm: 10.9.2 - ~/.volta/tools/image/node/22.13.0/bin/npm pnpm: 9.15.5 - ~/.volta/bin/pnpm Browsers: Chrome: 133.0.6943.54 Chrome Canary: 135.0.7012.0 Edge: 133.0.3065.59 Safari: 18.0 npmPackages: wxt: ^0.19.13 => 0.19.27
pnpm
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Describe the bug
I am importing and instantiating a worker in WXT, but the added
iifeReturnValueName
leads to accessing an undefined variable.Reproduction
https://github.com/Justineo/wxt-repro
Steps to reproduce
pnpm dev
.And in the console you will see:
worker.ts
is transformed into:Where
content
is not defined.System Info
Used Package Manager
pnpm
Validations
The text was updated successfully, but these errors were encountered: