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

export anchors(refs) #718

Open
lucasyarid opened this issue May 17, 2024 · 0 comments
Open

export anchors(refs) #718

lucasyarid opened this issue May 17, 2024 · 0 comments

Comments

@lucasyarid
Copy link

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.

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

1 participant