Skip to content
This repository was archived by the owner on Jun 21, 2024. It is now read-only.
This repository was 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

@chrisdevereux

Description

@chrisdevereux

@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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions