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

Glob-style imports with partial directory name substitutions #3739

Open
gruntster opened this issue Apr 29, 2024 · 0 comments
Open

Glob-style imports with partial directory name substitutions #3739

gruntster opened this issue Apr 29, 2024 · 0 comments

Comments

@gruntster
Copy link

Import path expressions with partial directory name substitutions, e.g. require(`./v${version}/x.json`), result in the glob pattern not matching any files.

Is it possible for these type of path expressions to be supported by esbuild? This style of import has been adopted by third party libraries that we use.

Minimal partial substitution sample here, compared to full substitution here.

Thanks.

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