fix: package of llama-node

This commit is contained in:
linonetwo 2023-07-17 16:44:40 +08:00 committed by lin onetwo
parent d60ae9d132
commit 66ea5a2c34
14 changed files with 104 additions and 56 deletions

View file

@ -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 },