We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
ESBuild cannot handle the TypeScript syntax like @log<string>("foo").
@log<string>("foo")
Steps to reproduce:
pnpm install
entry1.ts
entry2.ts
pnpm run build:tsc
tsc
dist/
pnpm run build:esbuild:1
pnpm run build:esbuild:2
[ERROR] Expected "class" after decorator but found "<"
You can also see the error message through the following link:
https://esbuild.github.io/try/#YgAwLjE5LjAAAGUAZW50cnkyLnRzAGZ1bmN0aW9uIGxvZzxUPihvcHRpb25zOiBUKSB7CiAgY29uc3QgZGVjb3JhdG9yID0gKGNsczogYW55LCBjb250ZXh0OiBDbGFzc0RlY29yYXRvckNvbnRleHQpID0+IHsKICAgIHJldHVybiBjbHM7CiAgfTsKICByZXR1cm4gZGVjb3JhdG9yOwp9CgpAbG9nPHN0cmluZz4oImZvbyIpCmV4cG9ydCBjbGFzcyBNeUNsYXNzIHt9
The text was updated successfully, but these errors were encountered:
a973f87
No branches or pull requests
ESBuild cannot handle the TypeScript syntax like
@log<string>("foo")
.Steps to reproduce:
pnpm install
. This repo contains two TypeScript filesentry1.ts
andentry2.ts
.pnpm run build:tsc
.tsc
outputs the JavaScript files underdist/
without any issue.pnpm run build:esbuild:1
. ESBuild can handleentry1.ts
pnpm run build:esbuild:2
. ESBuild throws this error:[ERROR] Expected "class" after decorator but found "<"
You can also see the error message through the following link:
https://esbuild.github.io/try/#YgAwLjE5LjAAAGUAZW50cnkyLnRzAGZ1bmN0aW9uIGxvZzxUPihvcHRpb25zOiBUKSB7CiAgY29uc3QgZGVjb3JhdG9yID0gKGNsczogYW55LCBjb250ZXh0OiBDbGFzc0RlY29yYXRvckNvbnRleHQpID0+IHsKICAgIHJldHVybiBjbHM7CiAgfTsKICByZXR1cm4gZGVjb3JhdG9yOwp9CgpAbG9nPHN0cmluZz4oImZvbyIpCmV4cG9ydCBjbGFzcyBNeUNsYXNzIHt9
The text was updated successfully, but these errors were encountered: