Repository navigation
chore(deps): Inline normalize-path - #2557
Merged
Merged
Conversation
✅ Deploy Preview for creative-fairy-df92c4 ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
@wxt-dev/analytics
@wxt-dev/auto-icons
@wxt-dev/browser
@wxt-dev/i18n
@wxt-dev/is-background
@wxt-dev/module-react
@wxt-dev/module-solid
@wxt-dev/module-svelte
@wxt-dev/module-vue
@wxt-dev/runner
@wxt-dev/storage
@wxt-dev/unocss
@wxt-dev/webextension-polyfill
wxt
commit: |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #2557 +/- ##
==========================================
- Coverage 79.28% 79.24% -0.05%
==========================================
Files 134 134
Lines 3997 3994 -3
Branches 924 921 -3
==========================================
- Hits 3169 3165 -4
Misses 733 733
- Partials 95 96 +1 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
aklinker1
marked this pull request as ready for review
August 1, 2026 22:11
normalize-path
Co-authored-by: Suvesh Moza <[email protected]>
34 of 37 tasks
Member
Author
|
Tested in one of my extensions for real, works just fine. |
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.
Overview
Prebuild inline deps as minified ESM, then change where the WXT build resolves these depedencies from - from
node_modulesto the newinlinedirectory.Goal here is to strip unused CJS, docs, maps, and other files that are not necessary for WXT to function. Generally dependencies should only be inlined if they are small themselves, and this will just prevent package managers from having to resolve and download these packages.
A couple of potential issues with this:
Results from inlining
normalize-path: 18MB / 125 packages → 18MB / 124 packagesWXT itself goes from
335KB→336KB(+0.79 kB vs -9.2 kB from removing the package)Manual Testing
If the template jobs pass CI, that means the setup is working, and projects using WXT can import things correctly.
Related Issue
Apart of #2523