Skip to content

Wrap sourceMappingURL in a safe comment sequence #108

@dmethvin

Description

@dmethvin

Due to the conditional JavaScript commenting feature inside all versions of IE, It's possible for the sourceMappingURL comment at the end of the file to be executed as JavaScript if @cc_on has been used in any file anywhere before that line. See this bug report for more info: http://bugs.jquery.com/ticket/13274

The solution is to wrap the single-line comment in a multi-line comment.

/*
//@ sourceMappingURL=file.min.js
*/

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