Hi, we have application that build with webpack and contains of federated modules with isolated dependencies.
Recently we had warnings like in issue Yjs was already imported. · Issue #438 · yjs/yjs · GitHub I have question about it.
Is it safe to have 2 isolated modules if each of it have own Yjs package?
This modules is not interact with each other at all or interact by some API, but code from one module is never use Yjs from another module.
Maybe Yjs is write some objects to a global object and 2 imports from different packages may rewrite something important and lead us to problems?
I’ve read this commit add warning when Yjs was already imported · yjs/yjs@cbddf6e · GitHub and i guess that Yjs is write to global object only
importIdentifier, and for our specific case we may use 2 different Yjs package, because inside one module the code use only one package always