css-blocks
css-blocks copied to clipboard
@export doesn't work as expected based on @block syntax.
@export foo from "./foo.block.css"should export thedefaultblock offoo.block.cssasfoo.@export (bar) from "./foo.block.css"should export thebarblock offoo.block.cssasbar.@export (bar as xyz) from "./foo.block.css"should export thebarblock offoo.block.cssasxyz.@export abcshould export the local block reference toabcasabc.@export (abc as zyx)should export the local block reference toabcaszyx.
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.