项目文件夹

文件
caorushizi c289d3690f refactor(browser-extension): remove dead FloatButton, jQuery and Lit dependencies
FloatButton was effectively dead — it listened for "webview-link-message" which
no one sends after the IPC namespace refactoring, and its functionality is fully
covered by BrowserViewPanel in the main UI. Remove it along with jQuery, Lit and
nanoid dependencies. Consolidate remaining BilibiliButton into a single-file
vanilla custom element, replace fragile global-index DOM lookup with
closest()-based card-relative queries, and replace setInterval polling with
MutationObserver. Build output reduced from 607KB to 1.9KB.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-13 00:19:14 +08:00

29 行
628 B
JSON

{
"name": "@mediago/browser-extension",
"version": "0.0.0",
"type": "module",
"scripts": {
"dev": "tsdown --watch ./src",
"build": "tsdown",
"lint": "oxlint .",
"type:check": "tsc --noEmit"
},
"dependencies": {
"@mediago/shared-common": "workspace:*"
},
"devDependencies": {
"@types/node": "^24.7.2",
"typescript": "^6.0.2",
"tsdown": "^0.15.9"
},
"main": "./build/index.js",
"module": "./build/index.js",
"types": "./build/index.d.ts",
"exports": {
".": "./build/index.js",
"./package.json": "./package.json"
},
"author": "caorushizi",
"license": "MIT"
}