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

[Bug]: Does not preserve white space around custom web components #192

Open
rgant opened this issue Mar 3, 2025 · 0 comments
Open

[Bug]: Does not preserve white space around custom web components #192

rgant opened this issue Mar 3, 2025 · 0 comments

Comments

@rgant
Copy link

rgant commented Mar 3, 2025

What happened?

Web components default to display inline. But since this tool maintains a list of specific tag names to consider inline it does not include web components.

For example:

test('custom components inline', async () => {
  const input = 'George said <custom-component>Oh, my.</custom-component>';
  const output = 'George said <custom-component>Oh, my.</custom-component>';
  expect(await minify(input)).toBe(output);
});

Version

7.2.0

What browsers are you seeing the problem on?

Chrome

Link to reproduce

No response

Relevant log output

Willing to submit a PR?

Yes

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