Skip to content

fix: Define web globals when importing entrypoints - #865

Merged
aklinker1 merged 7 commits into
mainfrom
environments
Jul 27, 2024
Merged

aklinker1 merged 7 commits into
mainfrom
environments

Conversation

@aklinker1

@aklinker1 aklinker1 commented Jul 26, 2024 •

Copy link
Copy Markdown
Member

This closes #864 . It introduces the concept of an "environment". There are two environments:

  • browser environment: Just contains web globals like window or document
  • extension environment: browser environment + chrome and browser globals.

WXT spins up the extension environment when importing entrypoints.

@netlify

netlify Bot commented Jul 26, 2024 •

Copy link
Copy Markdown

✅ Deploy Preview for creative-fairy-df92c4 ready!

Name Link
🔨 Latest commit 34832f9
🔍 Latest deploy log https://app.netlify.com/sites/creative-fairy-df92c4/deploys/66a54e59fe739300082cdb70
😎 Deploy Preview https://deploy-preview-865--creative-fairy-df92c4.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

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

@aklinker1
aklinker1 marked this pull request as ready for review July 27, 2024 19:48
@aklinker1
aklinker1 merged commit 97aa173 into main Jul 27, 2024
@aklinker1
aklinker1 deleted the environments branch July 27, 2024 19:48
@aklinker1 aklinker1 changed the title fix: web globals not defined when importing entrypoints fix: Define web globals when importing entrypoints Jul 27, 2024
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.

window not defined in content shared file in v0.19

1 participant