Sprockets replacements and code splitting

(Yihan "Misaka 0x4e21" X.) #1

Is there still any plan to replace sprockets, the current assets-building pipeline with another one that supports code splitting such as webpack? It seems that an all-in-one bundle of all JavaScript files, rather than needed files split by routes, may hurt page-loading performance.

I’ve tried webpacker which integrated webpack and Rails, but got nothing lucky. Discourse has its own AMD implementation which has been unable to access modules moved to webpack, making it impossible to use sprockets and webpack at the same time.