what would be the equivalent to <aura:dependency resource="c:lightningComponent" /> in Lightning Web components?

I wonder if importing the class that holds the component logic would suffice ? please let me know.


aura:dependency is used when you are dynamically creating components in javascript of aura or lightning out . Now LWC does not support dynamic component creation or lightning out so I believe as of now there is no need of LWC equivalent of aura: dependency

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.