Closed
Description
Our production app using Webpacker 6 currently has many files that employ lazy loading of chunks:
// Only load Trix when necessary
async bootstrap () {
const { default: Trix } = await import(/* webpackChunkName: "trix" */ '../../chunks/trix')
return Trix
}
We are switching to jsbundling
, but the code above is broken. It seems that Webpack can't find the chunk because of the fingerprint that Sprockets add to the end of the file name.
Is this possible with jsbundling
right now, or would it be necessary for me to open a PR to add the support? I tried reading through the Webpacker code, but couldn't figure out what it was doing to make this work.
Metadata
Metadata
Assignees
Labels
No labels