Skip to content

docs: Add section on extension API entrypoint limitations #1743

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

aklinker1
Copy link
Collaborator

@aklinker1 aklinker1 commented Jun 14, 2025

Overview

This closes #1569. There was already a section about not using APIs outside the main function, but I've added a whole new section with examples.

"... you should avoid using browser or extension APIs outside the main function of your entrypoints!"
https://wxt.dev/guide/essentials/config/entrypoint-loaders.html

@aklinker1 aklinker1 self-assigned this Jun 14, 2025
Copy link

netlify bot commented Jun 14, 2025

Deploy Preview for creative-fairy-df92c4 ready!

Name Link
🔨 Latest commit 91504d5
🔍 Latest deploy log https://app.netlify.com/projects/creative-fairy-df92c4/deploys/684de17d945c8a0008dfd588
😎 Deploy Preview https://deploy-preview-1743--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 project configuration.

Copy link

codecov bot commented Jun 14, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 80.97%. Comparing base (1272e2e) to head (91504d5).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1743      +/-   ##
==========================================
- Coverage   80.98%   80.97%   -0.02%     
==========================================
  Files         129      129              
  Lines        6627     6627              
  Branches     1080     1082       +2     
==========================================
- Hits         5367     5366       -1     
- Misses       1249     1250       +1     
  Partials       11       11              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Copy link

pkg-pr-new bot commented Jun 14, 2025

Open in StackBlitz

@wxt-dev/analytics

npm i https://pkg.pr.new/@wxt-dev/analytics@1743

@wxt-dev/auto-icons

npm i https://pkg.pr.new/@wxt-dev/auto-icons@1743

@wxt-dev/browser

npm i https://pkg.pr.new/@wxt-dev/browser@1743

@wxt-dev/i18n

npm i https://pkg.pr.new/@wxt-dev/i18n@1743

@wxt-dev/module-react

npm i https://pkg.pr.new/@wxt-dev/module-react@1743

@wxt-dev/module-solid

npm i https://pkg.pr.new/@wxt-dev/module-solid@1743

@wxt-dev/module-svelte

npm i https://pkg.pr.new/@wxt-dev/module-svelte@1743

@wxt-dev/module-vue

npm i https://pkg.pr.new/@wxt-dev/module-vue@1743

@wxt-dev/runner

npm i https://pkg.pr.new/@wxt-dev/runner@1743

@wxt-dev/storage

npm i https://pkg.pr.new/@wxt-dev/storage@1743

@wxt-dev/unocss

npm i https://pkg.pr.new/@wxt-dev/unocss@1743

@wxt-dev/webextension-polyfill

npm i https://pkg.pr.new/@wxt-dev/webextension-polyfill@1743

wxt

npm i https://pkg.pr.new/wxt@1743

commit: 91504d5

@aklinker1 aklinker1 marked this pull request as ready for review June 14, 2025 20:54
@aklinker1 aklinker1 requested a review from Timeraa as a code owner June 14, 2025 20:54
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.

Clarify code outside of defineBackground as related error
1 participant