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