mirror of
https://github.com/dergigi/boris.git
synced 2025-12-17 06:34:24 +01:00
- Import EventStore from 'applesauce-core' - Remove Vite alias/shim and node:path reference - Keep config minimal and standard-compliant
37 lines
864 B
TypeScript
37 lines
864 B
TypeScript
import { defineConfig } from 'vite'
|
|
import react from '@vitejs/plugin-react'
|
|
|
|
export default defineConfig({
|
|
plugins: [react()],
|
|
server: {
|
|
port: 9802
|
|
},
|
|
resolve: {
|
|
extensions: ['.js', '.ts', '.tsx', '.json'],
|
|
conditions: ['import', 'module', 'browser', 'default'],
|
|
preserveSymlinks: false,
|
|
mainFields: ['module', 'jsnext:main', 'jsnext', 'main']
|
|
},
|
|
optimizeDeps: {
|
|
include: ['applesauce-core', 'applesauce-factory', 'applesauce-relay', 'applesauce-react'],
|
|
esbuildOptions: {
|
|
resolveExtensions: ['.js', '.ts', '.tsx', '.json']
|
|
}
|
|
},
|
|
build: {
|
|
commonjsOptions: {
|
|
include: [/node_modules/],
|
|
transformMixedEsModules: true
|
|
},
|
|
rollupOptions: {
|
|
output: {
|
|
format: 'es'
|
|
}
|
|
}
|
|
},
|
|
ssr: {
|
|
noExternal: ['applesauce-core', 'applesauce-factory', 'applesauce-relay']
|
|
}
|
|
})
|
|
|