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

\x3c replacement issue reappeared in the latest esbuild when target is not esnest #2748

Closed
cncolder opened this issue Dec 15, 2022 · 0 comments

Comments

@cncolder
Copy link

I understand this issue has been fixed in #1322. But I found this only works when the target is defaults esnest.

Reproduce (esbuild@0.16.7):

echo '"\x3c/script>"' | esbuild
"<\/script>";echo '"\x3c/script>"' | esbuild --target=esnext
"<\/script>";
echo '"\x3c/script>"' | esbuild --target=es2022
"</script>";echo '"\x3c/script>"' | esbuild --target=es2015
"</script>";echo '"\x3c/script>"' | esbuild --target=chrome58
"</script>";
@evanw evanw closed this as completed in d28646b Dec 15, 2022
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

1 participant