-
-
Notifications
You must be signed in to change notification settings - Fork 256
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: Properly overload import.meta.env
with WXT's own environment globals
#966
Conversation
✅ Deploy Preview for creative-fairy-df92c4 ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
Merged this PR with |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #966 +/- ##
==========================================
- Coverage 81.90% 81.90% -0.01%
==========================================
Files 125 125
Lines 6605 6604 -1
Branches 1100 1100
==========================================
- Hits 5410 5409 -1
Misses 1181 1181
Partials 14 14 ☔ View full report in Codecov by Sentry. |
a00ce4a
to
99bbb93
Compare
99bbb93
to
e51d2ac
Compare
Haha, I missed the local rebase but it's maybe ok now 😅 |
import.meta.env
with WXT's own environment globals
fix #935
I copied vite's implement style https://github.com/vitejs/vite/blob/main/packages/vite/types/importMeta.d.ts. It seems that module augmentation is not allowed because
import
is a top-level scope.TS docs:
completion screenshot
