My FeedDiscussionsHeadless CMS
New
Sign in
Log inSign up
Learn more about Hashnode Headless CMSHashnode Headless CMS
Collaborate seamlessly with Hashnode Headless CMS for Enterprise.
Upgrade ✨Learn more

webpack : How does System.import() work? Have you used it?

Pavithra Kodmad's photo
Pavithra Kodmad
·Oct 24, 2016

While trying to understand code splitting in webpack, it is now common to see that require.ensure() has been replaced by System.import(). But I do not find that all features of require.ensure() are present in the latter. For eg - System.import() does not support loading multiple dependencies. It does not support chunk names. Have you used it in your code? If so can you help me understand it?