Commit b3db769
⚡️ 压缩 ts.worker.js 至 4MB 以通过 AMO 验证,修复 MV3 background permission 错误 (#1221)
* enhanced support for cross-browser
* Update utils.ts
* Update utils.ts
* blob -> arrayBuffer to force removing of MIME
* fix `content_security_policy`
* 改为 ZipExecutionPlugin 做代码压缩,使 ts.worker.js 大小缩减至 4MB ( < 5MB )
* revert changes
* 补回 packages - acorn, magic-string, pako
* code adjusted
* 修订代码
* 修订代码
* No "background" permission in Firefox MV3
* drop pako
* 紧急修复: 环境初始化时反注册未正确执行
* v1.3 修正名字: scriptcat-content -> scriptcat-scripting
* v1.3 修正反注册未正确执行
* inflateRaw 代码更新
* ZipExecutionPlugin代码调整
* Update pnpm-lock.yaml
* Update pnpm-lock.yaml
* update to acorn 8.16.0
* Update rspack-plugins/ZipExecutionPlugin.ts
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
* Update src/pages/components/RuntimeSetting/index.tsx
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
* 修改代码避免审查问题
* 直接命名导入 import { deflateRawSync } from "zlib" 以避免兼容性问题。
* Update src/pages/components/RuntimeSetting/index.tsx
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
* Update rspack-plugins/ZipExecutionPlugin.ts
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
* Update ZipExecutionPlugin.ts
* Update ZipExecutionPlugin.ts
---------
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: 王一之 <yz@ggnb.top>1 parent da16ddf commit b3db769
6 files changed
Lines changed: 768 additions & 98 deletions
File tree
- rspack-plugins
- scripts
- src/pages/components/RuntimeSetting
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
75 | 75 | | |
76 | 76 | | |
77 | 77 | | |
| 78 | + | |
| 79 | + | |
78 | 80 | | |
79 | 81 | | |
80 | 82 | | |
| |||
89 | 91 | | |
90 | 92 | | |
91 | 93 | | |
| 94 | + | |
92 | 95 | | |
93 | 96 | | |
94 | 97 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 commit comments