[ ] detect the current features based on usage in html
[ ] install that feature via dynamic import
Challenges
When targeting browser, bundle size can be sensitive. Using common plugin architecture like vue.use, rollup, or even class based like parcel might solve this but the bundle size tend to get big. Also, this feature only for internal implementation and not exposed for custom extension.
Approach
For a feature that is difficult to be implemented via composition pattern on first iteration:
inspired from suckless.tools
make full implementation in the main branch then remove that feature-set in different branch as patchset
maintain that patchset until stable
refactor main branch on different branch to chunk the feature-set based on that patchset
📨 TLDR
$ git branch --list
main
remove/wasm
refactor/wasm
Chunk current feature-set
Challenges
When targeting browser, bundle size can be sensitive. Using common plugin architecture like
vue.use
, rollup, or even class based like parcel might solve this but the bundle size tend to get big. Also, this feature only for internal implementation and not exposed for custom extension.Approach
For a feature that is difficult to be implemented via composition pattern on first iteration: