Skip to content

Expose custom transforms visitor API #1

Description

@pydsigner

The JavaScript bindings for lightningcss expose a powerful API for transforming CSS: https://lightningcss.dev/transforms.html. This functionality would be valuable, especially for projects like https://github.com/pydsigner/anchovy_css.

Activity

  1. added this to the v1.0.0 milestone on Aug 17, 2023
  2. pydsigner commented on Aug 18, 2023

    @pydsigner
    OwnerAuthor

    https://docs.rs/lightningcss/1.0.0-alpha.44/lightningcss/visitor/index.html

    The basis of our implementation should be a PyVisitor struct. This will have to wrap a RustVisitor struct that implements lightningcss::visitor::Visitor; Visitor itself involves lifetime parameters, which must be abstracted away from PyO3 (https://pyo3.rs/v0.19.2/class#no-lifetime-parameters).

  3. added 6 commits that reference this issue on Mar 18, 2026
  4. self-assigned this
    on Mar 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions