Repository navigation
feat!: Use vite-node to load entrypoints by default - #859
Merged
Merged
Conversation
✅ Deploy Preview for creative-fairy-df92c4 ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
aklinker1
marked this pull request as ready for review
July 25, 2024 22:22
aklinker1
commented
Jul 25, 2024
Comment on lines
-74
to
+81
| if (wxtConfig.analysis.enabled) { | ||
| if ( | ||
| wxtConfig.analysis.enabled && | ||
| // If included, vite-node entrypoint loader will increment the | ||
| // bundleAnalysis's internal build index tracker, which we don't want | ||
| !baseConfigOptions?.excludeAnalysisPlugin | ||
| ) { |
Member
Author
There was a problem hiding this comment.
I also fixed an issue with E2E tests where the analytics part files containing each build step's bundle info did not start at 0 because the vite-node imports were incrementing it's internal counter. Fixed by excluding this plugin when importing entrypoints.
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #859 +/- ##
==========================================
+ Coverage 82.17% 82.28% +0.10%
==========================================
Files 113 113
Lines 6323 6311 -12
Branches 1029 1039 +10
==========================================
- Hits 5196 5193 -3
+ Misses 1113 1104 -9
Partials 14 14 ☔ View full report in Codecov by Sentry. |
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.
BREAKING CHANGE: Switch from using
jitito import entrypoints during the build process by default tovite-node.To continue using
jiti, add the following to yourwxt.config.tsfile:NOTE: "jiti" is deprecated and will be removed in the next major version,
v0.20.0.This closes #506