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

Collapse inlined variables into templates #13233

Open
benmccann opened this issue Sep 13, 2024 · 0 comments
Open

Collapse inlined variables into templates #13233

benmccann opened this issue Sep 13, 2024 · 0 comments
Labels

Comments

@benmccann
Copy link
Member

Describe the problem

In #13075 we generate code like:

const x = "foo";
$.template(`hello ${x}`);

It would be nicer if this were simply:

$.template(`hello foo`);

Describe the proposed solution

Ideally this is implemented by esbuild (evanw/esbuild#3570) and Oxc (oxc-project/oxc#2646). Failing that, we may have to implement it ourselves

Importance

nice to have

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant