mirror of
https://github.com/Eugeny/tabby
synced 2024-12-13 14:52:45 +00:00
exclude ssh native deps from build
This commit is contained in:
parent
307f598be0
commit
655079741a
2 changed files with 6 additions and 4 deletions
|
@ -2,8 +2,9 @@ const config = require('../webpack.plugin.config')
|
|||
module.exports = config({
|
||||
name: 'ssh',
|
||||
dirname: __dirname,
|
||||
externals: [
|
||||
'./crypto/build/Release/sshcrypto.node',
|
||||
'../build/Release/cpufeatures.node',
|
||||
],
|
||||
alias: {
|
||||
'cpu-features': false,
|
||||
'./crypto/build/Release/sshcrypto.node': false,
|
||||
'../build/Release/cpufeatures.node': false,
|
||||
},
|
||||
})
|
||||
|
|
|
@ -39,6 +39,7 @@ module.exports = options => {
|
|||
cacheDirectory: path.resolve(options.dirname, 'node_modules', '.webpack-cache'),
|
||||
},
|
||||
resolve: {
|
||||
alias: options.alias ?? {},
|
||||
modules: ['.', 'src', 'node_modules', '../app/node_modules'].map(x => path.join(options.dirname, x)),
|
||||
extensions: ['.ts', '.js'],
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue