fix: 更新 Electron 配置,优化输入输出设置;精简多语言文件中的 ESLint 描述
This commit is contained in:
@@ -5,13 +5,15 @@ import path from 'path'
|
||||
|
||||
export default defineConfig({
|
||||
main: {
|
||||
entry: 'electron/main/index.ts',
|
||||
build: {
|
||||
target: 'node18',
|
||||
lib: {
|
||||
entry: 'electron/main/index.ts',
|
||||
},
|
||||
rollupOptions: {
|
||||
input: {
|
||||
index: path.resolve(__dirname, 'electron/main/index.ts'),
|
||||
},
|
||||
output: {
|
||||
format: 'cjs',
|
||||
},
|
||||
external: ['electron', 'electron-store'],
|
||||
},
|
||||
},
|
||||
@@ -22,11 +24,12 @@ export default defineConfig({
|
||||
},
|
||||
},
|
||||
preload: {
|
||||
entry: 'electron/preload/index.ts',
|
||||
build: {
|
||||
target: 'node18',
|
||||
rollupOptions: {
|
||||
input: path.resolve(__dirname, 'electron/preload/index.ts'),
|
||||
input: {
|
||||
index: path.resolve(__dirname, 'electron/preload/index.ts'),
|
||||
},
|
||||
output: {
|
||||
entryFileNames: '[name].js',
|
||||
format: 'cjs',
|
||||
|
||||
@@ -338,8 +338,7 @@
|
||||
"pythonMultipart": "File upload support",
|
||||
"typescript": "Superset of JavaScript",
|
||||
"vite": "Next-generation frontend build tool",
|
||||
"eslint": "JavaScript code linter",
|
||||
"postcss": "CSS transformation tool"
|
||||
"eslint": "JavaScript code linter"
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
@@ -338,8 +338,7 @@
|
||||
"pythonMultipart": "ファイルアップロードサポート",
|
||||
"typescript": "JavaScript のスーパーセット",
|
||||
"vite": "次世代フロントエンドビルドツール",
|
||||
"eslint": "JavaScript コードリンター",
|
||||
"postcss": "CSS 変換ツール"
|
||||
"eslint": "JavaScript コードリンター"
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
@@ -338,8 +338,7 @@
|
||||
"pythonMultipart": "파일 업로드 지원",
|
||||
"typescript": "JavaScript의 슈퍼셋",
|
||||
"vite": "차세대 프론트엔드 빌드 도구",
|
||||
"eslint": "JavaScript 코드 린터",
|
||||
"postcss": "CSS 변환 도구"
|
||||
"eslint": "JavaScript 코드 린터"
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
@@ -338,8 +338,7 @@
|
||||
"pythonMultipart": "文件上传支持",
|
||||
"typescript": "JavaScript 的超集",
|
||||
"vite": "下一代前端构建工具",
|
||||
"eslint": "JavaScript 代码检查工具",
|
||||
"postcss": "CSS 转换工具"
|
||||
"eslint": "JavaScript 代码检查工具"
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"ignoreDeprecations": "6.0",
|
||||
"ignoreDeprecations": "5.0",
|
||||
"tsBuildInfoFile": "./node_modules/.tmp/tsconfig.app.tsbuildinfo",
|
||||
"target": "ES2022",
|
||||
"useDefineForClassFields": true,
|
||||
|
||||
Reference in New Issue
Block a user