Skip to content

fix: Reduce extension environment footprint - #1231

Closed
aklinker1 wants to merge 2 commits into
mainfrom
ts-evaluator-fix
Closed

aklinker1 wants to merge 2 commits into
mainfrom
ts-evaluator-fix

Conversation

@aklinker1

@aklinker1 aklinker1 commented Dec 1, 2024 •

Copy link
Copy Markdown
Member

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.

@netlify

netlify Bot commented Dec 1, 2024 •

Copy link
Copy Markdown

✅ 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 label Dec 1, 2024
@codecov

codecov Bot commented Dec 1, 2024 •

Copy link
Copy Markdown

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

aklinker1 commented Dec 1, 2024 •

Copy link
Copy Markdown
Member Author

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
Copy Markdown
Member Author

Closing this in favor of #1207.

@aklinker1 aklinker1 closed this Dec 8, 2024
@aklinker1
aklinker1 deleted the ts-evaluator-fix branch April 13, 2026 05:26
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.

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

1 participant