Skip to content

--define replaces SymbolRefs in LHS of assignments #208

@papandreou

Description

@papandreou
$ ./bin/uglifyjs -c --define FOO=false
FOO=true
^D
!1=!0;

In assetgraph-builder I have a similar situation where I use this helper function to avoid doing replacements in left-hand sides of assignments: https://github.com/One-com/assetgraph-builder/blob/master/lib/transforms/cloneForEachLocale.js#L9-L20

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