Skip to content
This repository has been archived by the owner on Jun 21, 2024. It is now read-only.

Investigate replacing our use of vite's import.meta.glob with import maps. #17

Open
chrisdevereux opened this issue Dec 9, 2021 · 0 comments

Comments

@chrisdevereux
Copy link
Contributor

chrisdevereux commented Dec 9, 2021

@janbaykara suggests:

Occurred to me that there could be scope for including a django variant of Ruby-style import maps, for loading Stimulus controller files for templates, as an alternative to bundling them altogether.

We in fact kind of already have this behaviour by using dynamic import() via vite's import.meta.glob to load and register controllers on-demand.

Using import maps could prove to be a more 'standard' way of providing this behaviour. Especially when the django hotwired libraries mature a bit.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant