-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Closed
Labels
Description
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
- create a package with contains process.env.VAR
- obfuscate the new package
- include a new package in webpack project
- :(
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