Skip to content
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

[To Do] Scope visitors added by @plugin #3243

Open
matthew-dean opened this issue Jun 29, 2018 · 0 comments
Open

[To Do] Scope visitors added by @plugin #3243

matthew-dean opened this issue Jun 29, 2018 · 0 comments

Comments

@matthew-dean
Copy link
Member

One thing the @plugin feature (plugins added/called from Less code) added was scoped functions. However, that scoping doesn't apply to visitors. So, if a plugin adds a visitor for nodes, those will apply to all subsequently visited nodes. A more library- / component-friendly approach would be to scope any "effects" of @plugin, including visitors and functions, to the @plugin scope.

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

No branches or pull requests

1 participant