Тестовый коммит после удаления husky

This commit is contained in:
2025-03-05 01:02:09 +03:00
parent b0f7a64a96
commit d90e1b93a9
120 changed files with 8191 additions and 8530 deletions

View File

@@ -1,46 +1,49 @@
import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
import polyfillNode from 'rollup-plugin-polyfill-node'
import path from 'path'
import { defineConfig } from 'vite';
import vue from '@vitejs/plugin-vue';
import polyfillNode from 'rollup-plugin-polyfill-node';
import { fileURLToPath } from 'url';
import path, { dirname } from 'path';
const __filename = fileURLToPath(import.meta.url);
const __dirname = dirname(__filename);
export default defineConfig({
plugins: [
vue(),
polyfillNode({
include: ['buffer', 'process', 'util']
})
include: ['buffer', 'process', 'util'],
}),
],
resolve: {
alias: {
'@': path.resolve(__dirname, 'src'),
buffer: 'buffer/'
}
'@': path.resolve(__dirname, './src'),
buffer: 'buffer/',
},
},
define: {
'global': 'globalThis',
'process.env': {}
global: 'globalThis',
'process.env': {},
},
build: {
rollupOptions: {
plugins: [
polyfillNode()
]
}
plugins: [polyfillNode()],
},
},
optimizeDeps: {
esbuildOptions: {
loader: {
'.js': 'jsx'
}
}
'.js': 'jsx',
},
},
},
server: {
port: 5173,
proxy: {
'/api': {
target: 'http://localhost:8000',
changeOrigin: true
changeOrigin: true,
cookieDomainRewrite: 'localhost',
}
}
}
})
},
},
});