mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-13 07:46:06 +00:00
e2e: adapt cypress browserify configuration to ignore http due to expressjs dependencies
This commit is contained in:
parent
a906645660
commit
1e5f009d83
@ -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
|
||||
}
|
||||
}),
|
||||
);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user