Skip to content

beautify does not work; should be an output option #92

@josephg

Description

@josephg
$ npx browserify -t [ uglifyify -b ] a.js 
DefaultsError: `beautify` is not a supported option while parsing file: a.js

The problem is this code:

  if (opts.b) {
    opts.beautify = opts.b
    delete opts.b
  }

... Should instead be setting beautify in opts.output:

  if (opts.b) {
    if (!opts.output) opts.output = {}
    opts.output.beautify = opts.b
  }

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