Skip to content

feat!: Use vite-node to load entrypoints by default - #859

Merged
aklinker1 merged 4 commits into
mainfrom
vite-node-importer-default
Jul 25, 2024
Merged

aklinker1 merged 4 commits into
mainfrom
vite-node-importer-default

Conversation

@aklinker1

Copy link
Copy Markdown
Member

BREAKING CHANGE: Switch from using jiti to import entrypoints during the build process by default to vite-node.

To continue using jiti, add the following to your wxt.config.ts file:

export default defineConfig({
  entrypointLoader: "jiti",
})

NOTE: "jiti" is deprecated and will be removed in the next major version, v0.20.0.


This closes #506

@netlify

netlify Bot commented Jul 25, 2024 •

Copy link
Copy Markdown

✅ Deploy Preview for creative-fairy-df92c4 ready!

Name Link
🔨 Latest commit 75b29f1
🔍 Latest deploy log https://app.netlify.com/sites/creative-fairy-df92c4/deploys/66a2d001dc7fce0008efc4e2
😎 Deploy Preview https://deploy-preview-859--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 25, 2024 22:22
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
) {

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

codecov Bot commented Jul 25, 2024

Copy link
Copy Markdown

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 82.28%. Comparing base (2b6ff8d) to head (75b29f1).

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.
📢 Have feedback on the report? Share it here.

@aklinker1
aklinker1 merged commit c8ddc66 into main Jul 25, 2024
@aklinker1
aklinker1 deleted the vite-node-importer-default branch July 25, 2024 22:25
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.

Extract entrypoint options improvements

1 participant