refactor: 在多个文件中添加process导入并调整tsconfig顺序

统一添加node:process导入以提高代码一致性
调整tsconfig.json中配置项的顺序以提升可读性
This commit is contained in:
feige996 2025-06-21 17:03:45 +08:00
parent c355f6e8f1
commit 32cf872405
5 changed files with 6 additions and 2 deletions

View File

@ -1,4 +1,5 @@
import path from 'node:path'
import process from 'node:process'
// manifest.config.ts
import { defineManifestConfig } from '@uni-helper/vite-plugin-uni-manifest'
import { loadEnv } from 'vite'

View File

@ -20,10 +20,10 @@
],
"allowJs": true,
"noImplicitThis": true,
"outDir": "dist",
"sourceMap": true,
"skipLibCheck": true,
"allowSyntheticDefaultImports": true,
"outDir": "dist"
"skipLibCheck": true
},
"vueCompilerOptions": {
"plugins": ["@uni-helper/uni-types/volar-plugin"]

View File

@ -1,4 +1,5 @@
import path from 'node:path'
import process from 'node:process'
import fs from 'fs-extra'
export function copyNativeRes() {

View File

@ -2,6 +2,7 @@
import type { Plugin } from 'vite'
import fs from 'node:fs/promises'
import path from 'node:path'
import process from 'node:process'
function updatePackageJson(): Plugin {
return {

View File

@ -1,4 +1,5 @@
import path from 'node:path'
import process from 'node:process'
import Uni from '@dcloudio/vite-plugin-uni'
import Components from '@uni-helper/vite-plugin-uni-components'
// @see https://uni-helper.js.org/vite-plugin-uni-layouts