Skip to content

[Feature]: inlining the strip-bom package on jest-runtime #15962

@hyperz111

Description

@hyperz111

🚀 Feature Proposal

strip-bom is a small package (13 lines) and used by jest-runtime. We can inline it than depend on it.

Motivation

By doing this, we can reduce the dependencies total and speed up the installation time.

Example

I think if we can replace it with this simple code.

content.charCodeAt(0) === 0xFEFF ? content.slice(1) : content;

Pitch

This is a suggestion.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions