mirror of
https://github.com/Silentely/eSIM-Tools.git
synced 2026-09-10 01:38:49 +08:00
由于项目使用原生 ES 模块而非 webpack 打包,npm 导入方式无法工作。 改用 CDN 动态加载方案: - 新增 src/js/sentry-loader.js:从 CDN 动态加载 Sentry SDK - 重写 src/js/modules/sentry-init.js:使用 window.Sentry 而非 npm 导入 - 新增 scripts/inject-sentry-config.js:构建时注入环境变量配置 - 更新 build-static.js:集成 Sentry 配置注入步骤 - 更新 HTML 文件:添加 Sentry 配置脚本块和 CSP 策略 测试方法:部署后在控制台执行 testSentry() 或 window.testSentry()