Skip to content
Discussion options

You must be logged in to vote

Hi @MF91WorkPS,

As far as we're aware, there's nothing unusual or incorrect about module cycles. Standard and CommonJS modules have strong identities that ensure uniqueness. That is, once you've imported a given module, subsequent imports of the same module provide access to the same actual module instance.

Also, strictly speaking, the document loader has nothing to do with modules or imports. It's just a way to load scripts or other documents from the file system, the web, or elsewhere. However, documents, like modules, must also have strong identities, and the loader must ensure that a given document is only loaded once.

That's documented in ClearScript's API reference for LoadDocument

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@MF91WorkPS
Comment options

Answer selected by MF91WorkPS
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants