e2e: adapt cypress browserify configuration to ignore http due to expressjs dependencies

This commit is contained in:
mahula 2025-06-26 22:08:42 +02:00
parent a906645660
commit 1e5f009d83

View File

@ -19,8 +19,9 @@ async function setupNodeEvents(on, config) {
browserify({
...preprendTransformerToOptions(config, browserify.defaultOptions),
onBundle(bundle) {
// Ignore async_hooks used by tslog logger - Node.js built-in not available in browser
bundle.ignore('async_hooks')
// Ignore Node.js built-ins not available in browser
bundle.ignore('async_hooks') // Used by tslog logger
bundle.ignore('http') // Node.js built-in
}
}),
);