Webpacker alternatives - which path should we go to? #8783
Replies: 9 comments 36 replies
-
|
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
|
Based on the investigation done for implementing #8745, I would conclude the best approach for the task at hand would be
Imho, the importmaps makes more sense when discussing SPA, but we can benefit from it as it would cache individual js files and the user impact after a deployment would be minimal ... |
Beta Was this translation helpful? Give feedback.
-
|
As shakapacker was selected for the time being to move development forward without causing too much friction for different stakeholders, I think it would be a good time to write down a list of requirements what we have for the pipeline and what we have learned over these several migrations, in order to make the future migration easier:
Feel free to add to this list any requirements. I tried to keep the technology preferences (e.g. HTTP version, importmaps, etc.) out of this list, just to keep it focused on the features that developers need. There are some other discussions above about those technical preferences that need to be taken into account but those are up for future discussion. |
Beta Was this translation helpful? Give feedback.
-
|
As we are experiencing very bad performance with the CSS building process especially with v0.28, I have been testing the build process using ESBuild instead of Webpack (with different configurations) and I wanted to share some conclusions and finding from this effort:
If you are interested in testing it yourself, you can find the results of the investigation from the following resources. Running custom ESBuild asset packer with almost no changes to the current SCSS files:
Running custom ESbuild asset packer without SCSS compiler in the equation (PostCSS only, requires changes to the SCSS files):
|
Beta Was this translation helpful? Give feedback.
-
|
As we are working on multiple frontend issues, this topic remerged. I have tried in one of my repositories to migrate the decidim stimulus controllers to import them using importmaps, and i got a setup that partially works, and allsows us to offer a better developer support when speaking about javascript being registered inside different gems (including 3rd party modules). However, this setup is not fit for us, as Decidim has a lot of dependencies, which may not offer the right exports for us. Also, this may be problematic for legacy browsers, or for slow internet connections, even though we would only load whatever we need, but due to bad connection. Based on this we could have a few directions in which we can go:
As at the moment we only have hypotheses, i guess that we will proceed with the Stimulus controller extraction, Entrypoints splitting and hope that i will have some time to investigate Vite migration so that we can compare some numbers, see what errors i encounter. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
As its README says, Webpacker is dead:
As it's a gem that we're using, and as a matter of fact we're in a release candidate version, we should make a decision about what's the best course of action, with its pros and cons.
I'll open a new thread inside this discussion to talk pros and cons about every one of these options before we make a decision.
Beta Was this translation helpful? Give feedback.
All reactions