refactor: Clean code and make a couple small adjusts#2081
refactor: Clean code and make a couple small adjusts#2081PatrykKuniczak wants to merge 63 commits intowxt-dev:mainfrom
Conversation
❌ Deploy Preview for creative-fairy-df92c4 failed.
|
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #2081 +/- ##
==========================================
- Coverage 76.13% 75.93% -0.20%
==========================================
Files 113 113
Lines 3050 3046 -4
Branches 686 685 -1
==========================================
- Hits 2322 2313 -9
- Misses 645 648 +3
- Partials 83 85 +2 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
c8ea27a to
7b84c9c
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: |
|
@aklinker1 I HOPE, this is split good enough, i'll create second PR with types refactor, after this will be merged :) |
There was a problem hiding this comment.
There's lots of good changes in this PR, but also lots of unnecessary ones, changes to production behavior, and breaking changes. I left lots of comments, but there were so many files I stopped leaving comments half-way through.
I asked for the original PR to be broken up because of the variety of changes, but I don't think you broke it apart enough. Probably my fault, I didn't indicate enough what should have been in each PR.
I'm going to go through and pull out all the changes I 100% want from this PR into their own PRs, then once they are merged and this PR is updated, we can talk about the rest of the changes here.
packages/analytics/modules/analytics/providers/google-analytics-4.ts
Outdated
Show resolved
Hide resolved
packages/analytics/modules/analytics/providers/google-analytics-4.ts
Outdated
Show resolved
Hide resolved
packages/wxt/src/virtual/content-script-main-world-entrypoint.ts
Outdated
Show resolved
Hide resolved
49080e2 to
7ad069c
Compare
|
@aklinker1 Also sorry for this checks |
|
@aklinker1 After you'll merge your PRs, i'll rebase it here, and we'll be able to rename this PR and merge a couple things, which'll be left |
|
OK, PRs merged |
|
@aklinker1 Thanks, i'm very busy on the start of this week, but i'll rebase it and make other smaller PRs, to finish this job and i'll create also a couple for types. I have been trying my best, to fit to this project, but i need much more time, because after this week, i'll have new job and then i'll be able to work on project only on weekends and for sure, not each. Anyway, I hope i'll be able to put some value into project :) |
cd6e036 to
40a73f0
Compare
| } | ||
|
|
||
| ensureDir(resolve(outputFolder, 'icons')); | ||
| await ensureDir(resolve(outputFolder, 'icons')); |
There was a problem hiding this comment.
@aklinker1 Are you want this await, this can slow down, but really not much.
But if it don't exist error can occur and stops everything there.
Maybe additionally covert it with try/catch and output info???
|
|
||
| // TODO: Remove once https://github.com/wxt-dev/wxt/pull/1411 is merged | ||
| config.legacy ??= {}; | ||
| // @ts-ignore: Untyped option: |
| const server = await vite.createServer(config); | ||
| await server.pluginContainer.buildStart({}); | ||
| const node = new ViteNodeServer( | ||
| // @ts-ignore: Some weird type error... |
|
@aklinker1 One more(I hope) iteration here, let's read all of unresolved conversation and i'll be able to do sth and close this shit. Thanks for your pacient ❤️ |
|
@aklinker1 Let's read it last more time, and if sth can go into |



Overview
I've cherry-picked a couple commits from #2022(only related to code style and couple small things)
pathExistsinstead of deprecatedexists===instead==for some casesLet's read my questions(which are placed in
TODO:in code) and give me answers hereManual Testing
Let's check if project starts and works(Should, all tests passed :))