Skip to content

[BUG] Webpack 5 Development Mode #1053

Description

@BlackYuzia

Expected Behavior

Webpack development mode do not break any obfuscated code.

Current Behavior

Currently, webpack destroy obfuscated code by webpack obfuscator plugin if you set mode to development.

Steps to Reproduce

  1. Use webpack obfuscator plugin with high presset (I set 90% obfuscated functions to true and 1.0 of 1.0)
  2. Set mode to development inside webpack.config.js
  3. Build bundle
  4. Try run it and get error

Your Environment

  • Obfuscator version used: latest (3.4.1 or something)
  • Node version used: 14.16.1

Stack trace

image

Minimal working example that will help to reproduce issue

function hi() {
    console.log("hi!");
}

hi();

Activity

  1. sanex3339 commented on Feb 10, 2022

    @sanex3339
    Member

    Can't reproduce. Can you provide a repo with example?

  2. BlackYuzia commented on Feb 11, 2022

    @BlackYuzia
    ContributorAuthor
  3. sanex3339 commented on Feb 11, 2022

    @sanex3339
    Member
  4. sanex3339 commented on Feb 12, 2022

    @sanex3339
    Member

    Hi. Please try 3.2.6 version

  5. BlackYuzia commented on Feb 12, 2022

    @BlackYuzia
    ContributorAuthor
  6. sanex3339 commented on Feb 14, 2022

    @sanex3339
    Member

    Nice catch!
    #1062

  7. sanex3339 commented on Feb 14, 2022

    @sanex3339
    Member

    Should be fixed in 3.2.7

  8. BlackYuzia commented on Feb 14, 2022

    @BlackYuzia
    ContributorAuthor

    Tested, fixed

  9. BlackYuzia commented on Feb 15, 2022

    @BlackYuzia
    ContributorAuthor

    @sanex3339 could that be a one more bug?
    image

    I suppose what global exports was broken in some case also with webpack and development mode.
    I can't share source code, currently, but I try find a small codeexample for reproduce bug.

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