- Added --ui flag for terminal vs web coordination interface - Integrated Brain Cloud coordination server support - Enhanced CLI with authentication checks for premium features - Updated cortex legacy handler for better error handling - Improved default augmentations configuration - Version bump to support new features
40 lines
No EOL
941 B
TypeScript
40 lines
No EOL
941 B
TypeScript
import { defineConfig } from 'vite'
|
|
import { resolve } from 'path'
|
|
|
|
export default defineConfig({
|
|
build: {
|
|
target: 'es2022',
|
|
lib: {
|
|
entry: resolve(__dirname, 'dist/browserFramework.js'),
|
|
name: 'Brainy',
|
|
fileName: 'brainy-browser-bundle',
|
|
formats: ['es', 'umd']
|
|
},
|
|
rollupOptions: {
|
|
output: {
|
|
dir: 'dist/browser',
|
|
entryFileNames: '[name].js',
|
|
chunkFileNames: '[name].js'
|
|
}
|
|
},
|
|
sourcemap: true,
|
|
minify: false, // Keep unminified for debugging
|
|
outDir: 'dist/browser'
|
|
},
|
|
define: {
|
|
'process.env.NODE_ENV': JSON.stringify('production'),
|
|
global: 'globalThis',
|
|
'process.env': '{}'
|
|
},
|
|
optimizeDeps: {
|
|
include: ['@huggingface/transformers', 'uuid', 'crypto-browserify', 'buffer']
|
|
},
|
|
resolve: {
|
|
alias: {
|
|
crypto: 'crypto-browserify',
|
|
buffer: 'buffer',
|
|
process: 'process/browser',
|
|
util: 'util'
|
|
}
|
|
}
|
|
}) |