Skip to content

Style loader causes wrong regex match #19

Closed
@aleckravets

Description

@aleckravets

If the loaded resource is bundled with webpack+style-loader and minified (no spaces), source map loader triggers the false regex match due the the following line in the style loader's runtime code (addStyles.js:235):

css += "\n/*# sourceMappingURL=data:application/json;base64," + btoa(unescape(encodeURIComponent(JSON.stringify(sourceMap)))) + " */";

and fails trying to parse this string.

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