-
Notifications
You must be signed in to change notification settings - Fork 415
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
Tags parsing is too aggressive #1214
Comments
@Anber I think you fixed the cases you added test cases for but you did not fix this particular bug. This issue should be re-opened. |
More specifically this case is still failing: import { styled } from '@linaria/react';
export type StyledReturn = ReturnType<typeof styled>; |
@Anber I bumped reproduction to latest and indeed, it still reproes: https://stackblitz.com/edit/node-hyqpx9?file=package.json,testB.js This happens because |
Environment
@linaria/[email protected]
Description
There are cases when a tag parser (or traversal) is too aggressive and causes unexpected failures. There are two cases that I currently found.
CJS re-export produced by TS
⬇️⬇️⬇️
Results in:
./code/exampleB.js
node ./testB.js
Usage of identifier in TS types
Results in:
./code/exampleA.ts
node ./testA.js
Reproducible Demo
https://stackblitz.com/edit/node-hyqpx9
The text was updated successfully, but these errors were encountered: