Repository navigation
fix: Import entrypoint improvements - #1207
Merged
Merged
Conversation
… to reduce number of event listeners
✅ Deploy Preview for creative-fairy-df92c4 ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
Member
|
Wouldn't this also massively speed up build times? |
Member
Author
It would speed up importing the entrypoints to get their options... I don't know by how much it will effect the overall build. In general, this step is quite short compared to the actual build, so I doubt it will have a huge effect. |
This was referenced Nov 28, 2024
Merged
vite-node instance when importing entrypoints
@wxt-dev/auto-icons
@wxt-dev/i18n
@wxt-dev/module-react
@wxt-dev/module-solid
@wxt-dev/module-svelte
@wxt-dev/module-vue
@wxt-dev/storage
@wxt-dev/unocss
wxt
commit: |
aklinker1
marked this pull request as ready for review
December 8, 2024 17:39
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #1207 +/- ##
==========================================
- Coverage 81.29% 81.03% -0.26%
==========================================
Files 128 128
Lines 6245 6286 +41
Branches 1066 1066
==========================================
+ Hits 5077 5094 +17
- Misses 1153 1177 +24
Partials 15 15 ☔ View full report in Codecov by Sentry. |
vite-node instance when importing entrypoints
This was referenced Dec 8, 2024
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR refactors the logic around how options are imported from JS entrypoints. Each entrypoint is still read and imported in parallel, but now only one instance of the
vite-nodedev server is ever setup (instead of one for every JS/TS entrypoint). This closes #1204.Additionally, while doing the above refactor, I've reduced the footprint of the polyfilled extension environment while entrypoints are imported. Instead of creating multiple environments and polyfilling them in parallel, causing race conditions, the environment is polyfilled only once and is only present while importing the entrypoints. Before, the extension environment was also polyfilled when resolving vite config, the source of #931 (comment). This PR closes #931, and replaces #1231.