-
Notifications
You must be signed in to change notification settings - Fork 414
Please allow a space between css
and `
#235
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
Comments
css
and `
Thanks for the report. I just pushed a fix with an updated regex which should handle blank space after the tag. Please let me know if it works for you. |
@satya164 thanks, that was quick! |
@s-panferov btw since you use typescript, can you try if this works for you? #263 |
@satya164 wow, I'll try, but I believe that anything is better than nothing. Right now I use just declare module 'linaria' {
export function css(...string: any[]): string
export function cx(...string: (string | null | undefined | false)[]): string
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Do you want to request a feature or report a bug?
Bug, i think
What is the current behavior?
this chunk currently skipped by linaria because of the space between
css
and `The problem is this regexp.
What is the expected behavior?
It should be properly parsed because this is a correct JavaScript code. Also TypeScript < 2.9 emits it with a space, so we cannot fix it in our legacy codebase without a painful TypeScript update, but we would like to use
linaria
The text was updated successfully, but these errors were encountered: