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

This commit is contained in:
mahula 2025-06-26 22:32:59 +02:00
parent 1e5f009d83
commit eab4a24751

View File

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