Skip to content
This repository was archived by the owner on Jul 13, 2020. It is now read-only.
This repository was archived by the owner on Jul 13, 2020. It is now read-only.

Byte Order Mark included in fulfilled string from SystemLoader.fetch when executed in node #388

Closed
@jonoward

Description

@jonoward

When SystemLoader.fetch is executed on node, if the source file is UTF-8 and has a BOM, this is not stripped out by default (see nodejs/node-v0.x-archive#1918). This is causing an issue in systemjs-builder, when minification is enabled, and the plugin-text is used, as the BOM gets encoded, so you land up with strings like:

"\ufeff<div>hello</div>"

I'll submit a PR for this shortly

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