🐛 Fixed docker、shell prettier plugin issue

This commit is contained in:
2025-09-23 19:43:26 +08:00
parent dc4b73406d
commit e536cdd9ba
28 changed files with 3461 additions and 542 deletions

View File

@@ -16,7 +16,18 @@ export default defineConfig(({mode}: { mode: string }): object => {
},
plugins: [
vue(),
nodePolyfills(),
nodePolyfills({
include: [],
exclude: [],
// Whether to polyfill specific globals.
globals: {
Buffer: true, // can also be 'build', 'dev', or false
global: true,
process: true,
},
// Whether to polyfill `node:` protocol imports.
protocolImports: true,
}),
Components({
dts: true,
dirs: ['src/components'],
@@ -40,18 +51,10 @@ export default defineConfig(({mode}: { mode: string }): object => {
watch: null,
reportCompressedSize: false, // 跳过压缩大小报告
rollupOptions: {
maxParallelFileOps: 2,
treeshake: {
moduleSideEffects: false,
propertyReadSideEffects: false,
tryCatchDeoptimization: false
},
output: {
format: 'es',
chunkFileNames: 'js/[name]-[hash].js',
entryFileNames: 'js/[name]-[hash].js',
assetFileNames: '[ext]/[name]-[hash].[ext]',
compact: true,
},
}
}