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

When uglify-js fails to parse, it should throw a more specific Error #835

Open

Description

@michaelfranzl

throw new Error(e);

When uglify-js fails to parse (i.e. when some ES6 module was accidently not configured to be transpiled to ES5), it should not simply re-throw the uglify-js error, since it only contains filename: '0'. The error should contain the currently processed fileName. Ideally, the offending line should be output too.

Activity

  1. guybedford commented on Mar 12, 2018

    @guybedford
    Member

    Thanks for posting, and apologies for the delay.

    I'd be happy to review a PR for this.

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