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

Computational css doesn't resolve without brackets with esbuild-plugin-less #101

Open
aamiriqubal opened this issue Aug 18, 2023 · 0 comments

Comments

@aamiriqubal
Copy link

This would be good to have

Expected Behavior

It should resolve as

.main-container {
  padding: 0.5rem;
}

Actual Behavior

.main-container {
padding: 1rem/2;
}
image

Steps to Reproduce the Problem

When I write any kind of computational css like below sample

@padding: 1rem

.main-container {
  padding: @padding/2;
}

Though wrapping the statement within ( ) does fix it

Works like this

@padding: 1rem

.main-container {
  padding: (@padding/2);
}

Versions

  • esbuild: 0.19.1
  • esbuild-plugin-less: 1.2.4
  • Platform: node18
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