editor/apps/web/vite.config.ts
konstantin-paulus 4499f21432 Integrate TypeGPU support and update ESLint configuration
Add TypeGPU as a dependency and configure ESLint to include the TypeGPU plugin for enhanced type checking in JavaScript and TypeScript files. Update the Vite configuration to utilize the TypeGPU plugin, improving the development experience for GPU programming. Additionally, modify the .gitignore to exclude new AI-related files. This change enhances the project's capabilities for GPU-based computations and ensures consistent linting practices.
2026-07-16 08:49:09 +02:00

44 lines
1.1 KiB
TypeScript

/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
import { defineConfig } from 'vite'
import solid from 'vite-plugin-solid'
import solidSvg from 'vite-plugin-solid-svg'
import tailwindcss from '@tailwindcss/vite'
import typegpu from 'unplugin-typegpu/vite'
import { resolve } from 'path'
import pkg from '../../package.json'
export default defineConfig({
plugins: [
solid(),
tailwindcss(),
solidSvg({ defaultAsComponent: true }),
typegpu(),
],
define: {
APP_VERSION: JSON.stringify(pkg.version),
},
server: {
port: 5173,
strictPort: true,
headers: {
'Cross-Origin-Opener-Policy': 'same-origin',
'Cross-Origin-Embedder-Policy': 'credentialless',
},
proxy: {
'/api': {
target: 'http://localhost:3000',
changeOrigin: true,
},
},
},
resolve: {
alias: {
"@": resolve(__dirname, "./src"),
"@desktop": resolve(__dirname, "../desktop/src"),
}
}
})