Skip to content

Commit 477522c

Browse files
committed
Skip cpu-features when bundling - causes problems & not necessary
Specifically, this seems to cause issues when building in some environments where the build dependencies are all available (and so the build succeeds) but then bundling fails because it's native. We never need this, honestly we don't really need ssh2, it's probably not usable, and it's optional anyway, so it's best to just drop it entirely.
1 parent ebddbdd commit 477522c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

webpack.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ module.exports = {
6464
'win-version-info', // Native module
6565
'node-datachannel', // Native module
6666
'vm2', // Does odd things with require, can't be webpack'd
67+
'cpu-features', // Native module, optionally used in ssh2, used within Dockerode, we skip it
6768
function (context, request, callback) {
6869
if (context !== __dirname && request.endsWith('/error-tracking')) {
6970
// Direct all requires of error-tracking to its entrypoint at the top level,

0 commit comments

Comments
 (0)