Skip to content
New issue

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

fix: Reduce extension environment footprint #1231

Closed
wants to merge 2 commits into from
Closed

Conversation

aklinker1
Copy link
Collaborator

@aklinker1 aklinker1 commented Dec 1, 2024

This fixes #931. This fixes #1227.

Before, the extension environment polyfills were setup before creating the vite dev server. This was creating a document global that shouldn't exist when the dev-server is spinning up. Instead, the environment has been moved to have as small of a impact as possible - just when the entrypoint files are imported.

Copy link

netlify bot commented Dec 1, 2024

Deploy Preview for creative-fairy-df92c4 ready!

Name Link
🔨 Latest commit 9e0f109
🔍 Latest deploy log https://app.netlify.com/sites/creative-fairy-df92c4/deploys/674c8ef4fdcc000008752054
😎 Deploy Preview https://deploy-preview-1231--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 self-assigned this Dec 1, 2024
@aklinker1 aklinker1 added the bug Something isn't working label Dec 1, 2024
Copy link

codecov bot commented Dec 1, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 80.29%. Comparing base (c92ed13) to head (9e0f109).
Report is 19 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1231      +/-   ##
==========================================
- Coverage   80.59%   80.29%   -0.30%     
==========================================
  Files         127      127              
  Lines        6090     6089       -1     
  Branches     1024     1022       -2     
==========================================
- Hits         4908     4889      -19     
- Misses       1167     1185      +18     
  Partials       15       15              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@aklinker1
Copy link
Collaborator Author

aklinker1 commented Dec 1, 2024

Right now, this fix doesn't work because entrypoints are imported in parallel, and there's race-conditions that prevent the environment polyfills from being cleaned up properly. Need to wait for #1207 before this can be fixed.

@aklinker1
Copy link
Collaborator Author

Closing this in favor of #1207.

@aklinker1 aklinker1 closed this Dec 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Can not build when using PandaCSS vite-plugin-node-polyfills breaks the compilation
1 participant