1
1
mirror of https://github.com/Eugeny/tabby.git synced 2024-11-27 00:50:49 +03:00

exclude ssh native deps from build

This commit is contained in:
Eugene Pankov 2021-06-25 19:42:07 +02:00
parent 307f598be0
commit 655079741a
No known key found for this signature in database
GPG Key ID: 5896FCBBDD1CF4F4
2 changed files with 6 additions and 4 deletions

View File

@ -2,8 +2,9 @@ const config = require('../webpack.plugin.config')
module.exports = config({ module.exports = config({
name: 'ssh', name: 'ssh',
dirname: __dirname, dirname: __dirname,
externals: [ alias: {
'./crypto/build/Release/sshcrypto.node', 'cpu-features': false,
'../build/Release/cpufeatures.node', './crypto/build/Release/sshcrypto.node': false,
], '../build/Release/cpufeatures.node': false,
},
}) })

View File

@ -39,6 +39,7 @@ module.exports = options => {
cacheDirectory: path.resolve(options.dirname, 'node_modules', '.webpack-cache'), cacheDirectory: path.resolve(options.dirname, 'node_modules', '.webpack-cache'),
}, },
resolve: { resolve: {
alias: options.alias ?? {},
modules: ['.', 'src', 'node_modules', '../app/node_modules'].map(x => path.join(options.dirname, x)), modules: ['.', 'src', 'node_modules', '../app/node_modules'].map(x => path.join(options.dirname, x)),
extensions: ['.ts', '.js'], extensions: ['.ts', '.js'],
}, },