Skip to content

Feature request: Access component source file path using any of the available processors #66

@alexandra-lim

Description

@alexandra-lim

Would love to be able to access the source file path of the component from any of the processors to output something like:

{
  "Text": {
    "sourcePath": "/path/to/component",
    "instances": [
      {
        "props": {
          "textStyle": "subtitle2"
        },
        "propsSpread": false,
        "location": {
          "file": "/path/to/file",
          "start": {
            "line": 9,
            "column": 9
          }
        }
      },
    ]
  },
}

Or alternatively, is there a way to get this value from importedFrom in the config?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions