DEV Community


Discussion on: Dynamic module import with Stimulus JS

adrienpoly profile image
Adrien Poly Author

Yes I didn't emphasize on it. You are right, this is a Webpack feature (probably also supported by other bundlers as it is a JS feature

The nice thing with Stimulus is that it pairs very well with the lifecycle events.

intermundos profile image

Indeed, forgot that browser modules have native support for dynamic imports.

paramagicdev profile image
Konnor Rogers

Just found this, so I'm a little late to the party, but rollup also has first class support for dynamic imports.

Forem Open with the Forem app