Skip to content

Lazily loaded controllers #14

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
zmitic opened this issue Dec 5, 2020 · 1 comment
Closed

Lazily loaded controllers #14

zmitic opened this issue Dec 5, 2020 · 1 comment

Comments

@zmitic
Copy link

zmitic commented Dec 5, 2020

Is it possible to support them with this package: https://github.com/danieldiekmeier/stimulus-controller-resolver ?

Wouldn't

    "controllers": {
        "@symfony/ux-chartjs": {
            "chart": {
                "enabled": true,
                "webpackMode": "eager"
            }
        }
    },

load all of them; is that correct?

@stof
Copy link
Member

stof commented Dec 5, 2020

with webpackMode: eager, loading them early is expected. The issue is that even the lazy mode does not actually lazy-load things. that's already reported on symfony/stimulus-bridge#3 which is the package responsible for that (symfony/ux is about the core UX packages being provided, not the underlying tooling).
So I'm closing that one as a duplicate of symfony/stimulus-bridge#3

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

No branches or pull requests

2 participants