mirror of
https://github.com/tiddly-gittly/TidGi-Desktop.git
synced 2025-12-06 02:30:47 -08:00
fix: package of llama-node
This commit is contained in:
parent
d60ae9d132
commit
66ea5a2c34
14 changed files with 104 additions and 56 deletions
|
|
@ -48,11 +48,18 @@ module.exports = {
|
|||
},
|
||||
},
|
||||
externals: [
|
||||
// TODO: simply external things will make require can't find things. May need some other way.
|
||||
// simply external all things will make require can't find things. Only exclude what we copied in scripts/afterPack.js
|
||||
// nodeExternals({
|
||||
// additionalModuleDirs: ['@tiddlygit/tiddlywiki'],
|
||||
// allowlist: [/(threads-plugin)/],
|
||||
// }),
|
||||
'@tiddlygit/tiddlywiki',
|
||||
'llama-node',
|
||||
'@llama-node/llama-cpp',
|
||||
'@llama-node/core',
|
||||
'@llama-node/rwkv-cpp',
|
||||
'dugite',
|
||||
'zx',
|
||||
],
|
||||
// externalsType: 'commonjs',
|
||||
// externalsPresets: { electronMain: true },
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue