Skip to content

Implement top level API #3

Open

Description

@phated

Thinking out loud...

This will (likely) be a stream that parsers a sourceMappingURL comment from a file and passes it to a mapFn. If undefined or null is returned from mapFn, the comment should be removed from the original content. If a value is returned and is different from the original comment, it should replace the original comment (comparing original and new reduces the work done). If values are the same, ignore and pass the file on.

Activity

  1. phated commented on Mar 24, 2017

    @phated
    ContributorAuthor

    The mapFn syntax should be mapFn(sourceMappingURL, file)

  2. phated commented on Mar 24, 2017

    @phated
    ContributorAuthor

    This replaces the sourceMappingURL option in gulp-sourcemaps

  3. phated commented on Mar 24, 2017

    @phated
    ContributorAuthor

    Empty string might remove along with undefined and null. Not sure yet

  4. phated commented on Mar 25, 2017

    @phated
    ContributorAuthor

    Initial impl thoughts at 1dd6b48

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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