Skip to content

process.env and webpack #1122

@TrejGun

Description

@TrejGun

we have the same problem with the process.env and webpack. Webpack replaces process.env.VAR with value and can't do that properly when it obfuscate to process[_0x3ab67a(0x74)][_0x3ab67a(0x6b)]);

Expected Behavior

process.env.VAR is not replaced

Current Behavior

process.env.VAR is replaced with process[_0x3ab67a(0x74)][_0x3ab67a(0x6b)])

Steps to Reproduce

  1. create a package with contains process.env.VAR
  2. obfuscate the new package
  3. include a new package in webpack project
  4. :(

Temp solution

For now, we have to use

/* javascript-obfuscator:disable */
const VAR = process.env.VAR;
/* javascript-obfuscator:enable */

Proper solution

create an option to not obfuscate process.env

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions