You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Oct 9, 2024. It is now read-only.
I'm trying to do this in emberclear.io, without ember-prism, but it's been tricky enough where I think once I figure it out, it should be pulled in to here.
The reasoning behind being able to dynamically load languages at runtime is to cut down on bundle size. Right now, the ember-prism config is static.
Prism is large, (esp when compared to the total size of small apps). So, being able to omit everything Prism for the initial load is greatly desireable, and then once code renders that needs prism, it could fetch the deps.
Also, for editor purposes (imagine slack's code snippet modal), having the list of languages selectable, but not always loaded would benefit load/parse performance as well.