Skip to content

Usage of Intl.Segmenter() breaks on Firefox #50

@outloudvi

Description

@outloudvi

3 weeks ago, #47 introduced Intl.Segmenter(). However, since it's not supported by Firefox, this will break sites using string-width@^6.0.0 (approx. 1500 installs).

For a real-world example, the error is shown as below when I visited this site over Firefox Nightly 115.0a1:
Error on Firefox

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions