refactor: cleanup esm#1950
Conversation
✅ Deploy Preview for creative-fairy-df92c4 ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
ea11b14 to
8558aa7
Compare
|
Ugh, this diff is massive, did you rebase it correctly? |
Haven't rebased it yet |
c603e7d to
8fab501
Compare
There was a problem hiding this comment.
We can also cleanup this file: https://github.com/wxt-dev/wxt/blob/main/packages/wxt/src/core/utils/eslint.ts
Other than the changes that make Vite a required dependency, the rest looks good.
Also, should this be based on the main branch? Or did you intend this to be a breaking change as well?
lishaduck
left a comment
There was a problem hiding this comment.
Oh, apparently I didn't hit submit on my review, sorry for leaving you without guidance.
I was a bit confused, like didn't I just clarify + ask you a followup question? Makes sense.
Not sure what you mean, I did, right?
Vite is already a required dependency, is still a required dependency following #1945, and I'm skeptical of the multiple builders argument (I'll follow up on that above). I'll revert the changes, but I'm pretty lost as to the reasoning.
I didn't want to target changes that might be wrong, but having messed around with the codebase more, I'm pretty confident with them. |
|
The other imports to vite are because I got lazy... I'd prefer to keep it abstracted for now even if it's the only builder WXT supports. Maybe it's about time I clean those other imports up as well... Undoing the builder abstraction or more tightly coupling Vite to the project is something I will stubbornly refuse to budge on right now, sorry. |
53af521 to
4ba7209
Compare
✅ It looked like more but they were just types. Could we turn on
No need to be sorry! I'm just curious why it's built this way, I was surprised because I thought WXT was all-in on Vite. Sorry if it comes off confrontational (and I'll try not to, but knowing me I'll probably manage to complain whenever I touch these files |
a7b6b8c to
0e5263b
Compare
@wxt-dev/analytics
@wxt-dev/auto-icons
@wxt-dev/browser
@wxt-dev/i18n
@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: |
|
Looks like there are two test failures |
As far as I could tell, the original reasons are no longer reproducible.
Since wxt-dev#848, there's no need to do all this async work. At least, as far as I could tell...
These seem harmless enough I'll leave them in ig
1f5b48b to
f85a597
Compare
|
@aklinker1 I see there's more people, which want to make this code base, a little more readable. |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #1950 +/- ##
==========================================
+ Coverage 75.86% 75.99% +0.13%
==========================================
Files 113 113
Lines 3045 3041 -4
Branches 685 682 -3
==========================================
+ Hits 2310 2311 +1
+ Misses 650 646 -4
+ Partials 85 84 -1 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
Thanks for helping make WXT better! |
|
Thanks for sorting that out for me Aaron! Kept forgetting I had this sittin' around. |
|
No worries 👍 Glad we could get it merged. |
Overview
A few tiny cleanups I noticed could be made while perusing around the codebase.
Manual Testing
Bundle, check it still works.
Related Issue
This PR is stacked on #1945.