-
Notifications
You must be signed in to change notification settings - Fork 163
🔧 migrate the developer-extension to wxt #3962
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
base: main
Are you sure you want to change the base?
Changes from 3 commits
bcdba36
2d15023
adfe4ec
a8e1c7c
4c3a646
ab845f9
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -24,14 +24,12 @@ dev,@types/node-forge,MIT,Copyright Microsoft Corporation | |
| dev,@types/pako,MIT,Copyright Microsoft Corporation | ||
| dev,@types/react,MIT,Copyright Microsoft Corporation | ||
| dev,@types/react-dom,MIT,Copyright Microsoft Corporation | ||
| dev,@webextension-toolbox/webpack-webextension-plugin,MIT,Copyright 2018 Henrik Wenz ([email protected]) | ||
| dev,@wxt-dev/module-react,MIT,Copyright (c) 2023 Aaron | ||
| dev,ajv,MIT,Copyright 2015-2017 Evgeny Poberezkin | ||
| dev,browserstack-local,MIT,Copyright 2016 BrowserStack | ||
| dev,chrome-webstore-upload,MIT,Copyright Federico Brigante <[email protected]> (https://fregante.com), 2020 Andrew Levine | ||
| dev,connect-busboy,MIT,Copyright Brian White | ||
| dev,copy-webpack-plugin,MIT,Copyright JS Foundation and other contributors | ||
| dev,cors,MIT,Copyright 2013 Troy Goode | ||
| dev,css-loader,MIT,Copyright JS Foundation and other contributors | ||
| dev,emoji-name-map,MIT,Copyright 2016-19 Ionică Bizău <[email protected]> (https://ionicabizau.net) | ||
| dev,eslint,MIT,Copyright JS Foundation and other contributors | ||
| dev,eslint-module-utils,MIT,Copyright (c) 2015 Ben Mosher | ||
|
|
@@ -60,7 +58,6 @@ dev,pako,MIT,(C) 2014-2017 Vitaly Puzrin and Andrey Tupitsin | |
| dev,prettier,MIT,Copyright James Long and contributors | ||
| dev,puppeteer,Apache-2.0,Copyright 2017 Google Inc. | ||
| dev,react-router-dom,MIT,Copyright (c) React Training LLC 2015-2019 Copyright (c) Remix Software Inc. 2020-2021 Copyright (c) Shopify Inc. 2022-2023 | ||
| dev,style-loader,MIT,Copyright JS Foundation and other contributors | ||
| dev,terser-webpack-plugin,MIT,Copyright JS Foundation and other contributors | ||
| dev,ts-loader,MIT,Copyright 2015 TypeStrong | ||
| dev,ts-node,MIT,Copyright 2014 Blake Embrey | ||
|
|
@@ -72,10 +69,6 @@ dev,webpack-cli,MIT,Copyright JS Foundation and other contributors | |
| dev,webpack-dev-middleware,MIT,Copyright JS Foundation and other contributors | ||
| dev,@swc/core,Apache-2.0,Copyright (c) SWC Contributors | ||
| dev,swc-loader,MIT,Copyright (c) SWC Contributors | ||
| dev,@pmmmwh/react-refresh-webpack-plugin,MIT,Copyright (c) Michael Mok | ||
| dev,@types/webpack-env,MIT,Copyright Microsoft Corporation | ||
| dev,react-refresh,MIT,Copyright (c) Facebook, Inc. and its affiliates. | ||
| dev,react-refresh-typescript,MIT,Copyright (c) Piotr Monwid-Olechnowicz | ||
| dev,webpack-dev-server,MIT,Copyright JS Foundation and other contributors | ||
| dev,http-server,MIT,Copyright http-party contributors | ||
| dev,react-router,MIT,Copyright (c) React Training LLC 2015-2019 Copyright (c) Remix Software Inc. 2020-2021 Copyright (c) Shopify Inc. 2022-2023 | ||
| dev,wxt,MIT,Copyright (c) 2023 Aaron | ||
This file was deleted.
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| // eslint-disable-next-line import/no-unresolved | ||
| import { defineBackground } from 'wxt/utils/define-background' | ||
|
|
||
| // eslint-disable-next-line import/no-default-export | ||
| export default defineBackground(() => { | ||
| void import('../background') | ||
| }) |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,10 @@ | ||
| // eslint-disable-next-line import/no-unresolved | ||
| import { defineContentScript } from 'wxt/utils/define-content-script' | ||
| import { main } from '../content-scripts/isolated' | ||
|
|
||
| // eslint-disable-next-line import/no-default-export | ||
| export default defineContentScript({ | ||
| matches: ['<all_urls>'], | ||
| world: 'ISOLATED', | ||
| main, | ||
| }) |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,10 @@ | ||
| // eslint-disable-next-line import/no-unresolved | ||
| import { defineContentScript } from 'wxt/utils/define-content-script' | ||
| import { main } from '../content-scripts/main' | ||
|
|
||
| // eslint-disable-next-line import/no-default-export | ||
| export default defineContentScript({ | ||
| matches: ['<all_urls>'], | ||
| world: 'MAIN', | ||
| main, | ||
| }) |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| <!doctype html> | ||
| <html lang="en"> | ||
| <head> | ||
| <meta charset="UTF-8" /> | ||
| <meta name="viewport" content="width=device-width, initial-scale=1.0" /> | ||
| <script type="module" src="../devtools"></script> | ||
| </head> | ||
| <body></body> | ||
| </html> |
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Should we clarify why we need this? As we didn't have it before.
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We did have it before, just not as a separate file. I linked to MDN docs in the README to clarify a bit the architecture. |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| <!doctype html> | ||
| <html lang="en"> | ||
| <head> | ||
| <meta charset="UTF-8" /> | ||
| <meta name="viewport" content="width=device-width, initial-scale=1.0" /> | ||
| </head> | ||
| <body> | ||
| <div id="root"></div> | ||
| <script type="module" src="../panel"></script> | ||
| </body> | ||
| </html> |
Uh oh!
There was an error while loading. Please reload this page.