diff --git a/gulpfile.js b/gulpfile.js index dfd17d3a3..f2ad920f3 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -74,8 +74,6 @@ gulp.task('pack-browser', function () { .exclude('path') .exclude('balena-settings-client') .exclude('node-localstorage') - .exclude('formdata-node') - .exclude('form-data-encoder') .bundle(); return bundle diff --git a/karma.conf.js b/karma.conf.js index 9a16fdf56..1091848d0 100644 --- a/karma.conf.js +++ b/karma.conf.js @@ -41,8 +41,10 @@ module.exports = function (config) { querystring: require.resolve('querystring-es3'), // required by: balena-request stream: require.resolve('stream-browserify'), - // required by: balena-request - zlib: require.resolve('browserify-zlib'), + // required by tmp that we use in tests, but not when running on a browser + vm: false, + // required by mockttp -> http-encoding + zlib: false, }; karmaConfig.webpack.plugins = [ new getKarmaConfig.webpack.ProvidePlugin({ diff --git a/package.json b/package.json index 9d385349c..e92b1f1a3 100644 --- a/package.json +++ b/package.json @@ -76,7 +76,6 @@ "@types/sinon": "^17.0.3", "balena-config-karma": "^4.0.0", "browserify": "^17.0.0", - "browserify-zlib": "^0.2.0", "buffer": "^6.0.3", "catch-uncommitted": "^2.0.0", "chai": "^4.3.6",