Skip to content

export anchors(refs) #718

@lucasyarid

Description

@lucasyarid

Is there any way I can access YAML anchors?
Take this example:

shared: &shared
  - common/**/*
  - config/**/*
src:
  - *shared
  - src/**/*
backend:
  - '!(**/*.tsx|**/*.less)'

If I ran load on it, I get:

{
  shared: [ 'common/**/*', 'config/**/*' ],
  src: [ [ 'common/**/*', 'config/**/*' ], 'src/**/*' ],
  backend: [ '!(**/*.tsx|**/*.less)' ]
}

Which is expected but there is no way for me to know which of these keys are anchors or not.

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