The communications platform that puts data protection first.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
Rocket.Chat/apps/meteor/tests/setup/hoistedReact.ts

15 lines
632 B

// A UNINTENDED LOL-ZONE: SORRY FOR THIS
// ------------+----------+-------------
// /\O | _O | O
// /\/ | //|_ | /_
// /\ | | | |\
// / \ | /| | / |
// LOL LOL | LLOL | LOLLOL
// ------------+----------+-------------
// BLACK MAGIC FULL FEATURED ENABLED
// As Meteor requires a disabled hoisting of dependencies, we end up with multiple React instances,
// despite having the same version.
// eslint-disable-next-line @typescript-eslint/no-var-requires
Object.assign(require('../../node_modules/react'), require('../../../../node_modules/react'));