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
require()
In v0.19, transforming a dynamic require(`./${variable}`) with the cjs format leads to unexpected code:
require(`./${variable}`)
cjs
require
**/*
import__
globRequrie
https://esbuild.github.io/try/#dAAwLjE5LjIAewogIGZvcm1hdDogJ2NqcycsCn0AY29uc3QgeCA9ICdhLmpzJzsKcmVxdWlyZShgLi8ke3h9YCk7
https://esbuild.github.io/try/#dAAwLjE4LjIwAHsKICBmb3JtYXQ6ICdjanMnLAp9AGNvbnN0IHggPSAnYS5qcyc7CnJlcXVpcmUoYC4vJHt4fWApOw
The text was updated successfully, but these errors were encountered:
This was resolved via 00c4ebe (#3546).
Thanks!
Sorry, something went wrong.
No branches or pull requests
In v0.19, transforming a dynamic
require(`./${variable}`)
with thecjs
format leads to unexpected code:require
s a glob:**/*
import__
which is never usedglobRequrie
which is never definedv0.19.2
https://esbuild.github.io/try/#dAAwLjE5LjIAewogIGZvcm1hdDogJ2NqcycsCn0AY29uc3QgeCA9ICdhLmpzJzsKcmVxdWlyZShgLi8ke3h9YCk7
v0.18.20 - working expectedly
https://esbuild.github.io/try/#dAAwLjE4LjIwAHsKICBmb3JtYXQ6ICdjanMnLAp9AGNvbnN0IHggPSAnYS5qcyc7CnJlcXVpcmUoYC4vJHt4fWApOw
The text was updated successfully, but these errors were encountered: