- popup.js 拆分为 i18n/crypto-file/strength/messaging/ui-utils 五个 ES 模块 - 所有源码迁移至 src/ 目录,tsconfig strict 模式零错误编译 - globals.d.ts 定义 EnvStore/CryptoStore 完整接口与全局类型 - manifest.json 与 popup.html 引用 dist/ 编译产物 - 删除无效的 sidePanel.setOptions panelWidth 调用
21 lines
537 B
JSON
21 lines
537 B
JSON
{
|
|
"compilerOptions": {
|
|
"target": "ES2020",
|
|
"module": "ESNext",
|
|
"moduleResolution": "bundler",
|
|
"lib": ["ES2020", "DOM", "DOM.Iterable"],
|
|
"types": ["chrome"],
|
|
"strict": true,
|
|
"esModuleInterop": true,
|
|
"skipLibCheck": true,
|
|
"downlevelIteration": true,
|
|
"forceConsistentCasingInFileNames": true,
|
|
"outDir": "dist",
|
|
"rootDir": "src",
|
|
"sourceMap": false,
|
|
"declaration": false,
|
|
"removeComments": false
|
|
},
|
|
"include": ["src/**/*.ts"],
|
|
"exclude": ["node_modules", "dist", "tests"]
|
|
} |