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 async_hooks
This commit is contained in:
parent
941399ff2f
commit
a906645660
@ -16,7 +16,13 @@ async function setupNodeEvents(on, config) {
|
||||
|
||||
on(
|
||||
'file:preprocessor',
|
||||
browserify(preprendTransformerToOptions(config, browserify.defaultOptions)),
|
||||
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')
|
||||
}
|
||||
}),
|
||||
);
|
||||
|
||||
on('task', {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user