Skip to content

[2.0.0] Wrong minification #149

@madmoizo

Description

@madmoizo
  • Operating System: linux
  • Node Version: 12.x
  • terser webpack plugin: 2.0.0

Expected Behavior

v1.4.1 behavior
image

Actual Behavior

v2.0.0 behavior
image
syncQueueItems is not replaced by its minified name t
Result in ReferenceError: syncQueueItems is not defined

Code

Original code

try {
      const syncQueueItems = await this._getFromSyncQueue()
      const syncQueueItemsDeduplicated = []
      for (const { createdAt, modelName, primaryKey } of syncQueueItems) {

How Do We Reproduce?

No minimal reproduction yet

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