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 doesn't work as expected based on @block syntax. #467

Open
chriseppstein opened this issue Jul 31, 2020 · 0 comments
Open

@export doesn't work as expected based on @block syntax. #467

chriseppstein opened this issue Jul 31, 2020 · 0 comments
Assignees

Comments

@chriseppstein
Copy link
Contributor

  1. @export foo from "./foo.block.css" should export the default block of foo.block.css as foo.
  2. @export (bar) from "./foo.block.css" should export the bar block of foo.block.css as bar.
  3. @export (bar as xyz) from "./foo.block.css" should export thebar block of foo.block.css as xyz.
  4. @export abc should export the local block reference to abc as abc.
  5. @export (abc as zyx) should export the local block reference to abc as zyx.

When there's parens, we should accept any number of comma delimited export expressions where any export expression can be an identifier or two identifiers joined by as.

When there's not parens, we should only accept a single block name.

@ramitha ramitha self-assigned this Aug 3, 2020
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

2 participants