Skip to content
This repository has been archived by the owner on Feb 16, 2022. It is now read-only.

alias support #2

Open
latel opened this issue Feb 15, 2019 · 4 comments
Open

alias support #2

latel opened this issue Feb 15, 2019 · 4 comments

Comments

@latel
Copy link

latel commented Feb 15, 2019

do this loader supports alias through import?

prop.yml

---
mod:
  account: &account
      icon: all-account
      route: /account/personal

index.yml

---
!import ./prop.yml
entry:
    - *account

this throws
Module build failed: YAMLException: unidentified alias "account" in "index.yml" at line 8, column 16:
- *quickTrade

@latel
Copy link
Author

latel commented Feb 15, 2019

I debug into 'lib/loader.js:L1227', I see wzq.yml's state.input is

image

you can see @ is gone

@ngfk
Copy link
Owner

ngfk commented Mar 5, 2019

Hey the files are parsed separately which is why aliases from a different file don't work. If I can find some spare time I'll see if I can do this differently but I'm afraid that will be near the end of this month.

@latel
Copy link
Author

latel commented Mar 19, 2019

@ngfk it will be great

@latel
Copy link
Author

latel commented May 13, 2019

any progress?

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

No branches or pull requests

2 participants