Skip to content

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

@rgant

Description

@rgant

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions