Skip to content

Handle inline sourcemaps #5

@IvanSanchez

Description

@IvanSanchez

The current logic uses sander to read a filename whenever the sourceMappingURL= regexp matches.

However, that regexp also matches inline sourcemaps like:

/*# sourceMappingURL=data:application/json;base64,aaaaaaaaaaaaaaaaaaaa== */

There is a need for parsing data: URLs (base64-decode them, then JSON.parse() them).

In particular, the gobble-postcss transform generates inline sourcemaps by default, which are a problem if they are concatenated later.

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