fix: no such file or directory, open undefinedbinariesGithubRelease.json

https://github.com/withcatai/node-llama-cpp/issues/199
This commit is contained in:
lin onetwo 2024-04-13 00:58:25 +08:00
parent 328cfe0a95
commit 261a679f70

View file

@ -34,6 +34,7 @@ exports.main = _.compact([
}),
new webpack.DefinePlugin({
'process.env.NODE_ENV': `"${process.env.NODE_ENV ?? 'production'}"`,
'const __dirname = path.dirname(fileURLToPath(import.meta.url));': '',
}),
new ExternalsPlugin({
type: 'commonjs',