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 express due to expressjs dependencies
This commit is contained in:
parent
1e5f009d83
commit
eab4a24751
@ -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
|
||||
}
|
||||
}),
|
||||
);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user