* Fix: Windows llamacpp not picking up dlls from lib repo * Fix lib path on Windows * Add debug info about lib_path * Normalize lib_path for Windows * fix window lib path normalization * fix: missing cuda dll files on windows * throw backend setup errors to UI * Fix format * Update extensions/llamacpp-extension/src/index.ts Co-authored-by: ellipsis-dev[bot] <65095814+ellipsis-dev[bot]@users.noreply.github.com> * feat: add logger to llamacpp-extension * fix: platform check --------- Co-authored-by: Louis <louis@jan.ai> Co-authored-by: ellipsis-dev[bot] <65095814+ellipsis-dev[bot]@users.noreply.github.com>
21 lines
594 B
JavaScript
21 lines
594 B
JavaScript
|
|
import { defineConfig } from 'rolldown'
|
|
import pkgJson from './package.json' with { type: 'json' }
|
|
import settingJson from './settings.json' with { type: 'json' }
|
|
|
|
export default defineConfig({
|
|
input: 'src/index.ts',
|
|
output: {
|
|
format: 'esm',
|
|
file: 'dist/index.js',
|
|
},
|
|
platform: 'browser',
|
|
define: {
|
|
SETTINGS: JSON.stringify(settingJson),
|
|
ENGINE: JSON.stringify(pkgJson.engine),
|
|
IS_WINDOWS: JSON.stringify(process.platform === 'win32'),
|
|
IS_MAC: JSON.stringify(process.platform === 'darwin'),
|
|
IS_LINUX: JSON.stringify(process.platform === 'linux'),
|
|
},
|
|
})
|