Skip to content

target: "browser-no-eval" still produces "eval(..)"s. #1314

Open
@goldentechie

Description

@goldentechie

I am building a Chrome extension for my personal use and would like to share it with friends. However, I want to keep the code private.

I found an obfuscation tool that works as expected, but after installing the extension, it shows the following error:

Image

I found the target: "browser-no-eval" option, but it didn’t work as expected.

Expected Behavior

No evals should be found with target: "browser-no-eval" option.

Current Behavior

Image

Your Environment

  • Obfuscator version used:

  • Node version used: v20.12.2
    {
    ....

    "devDependencies": {
    "@types/chrome": "^0.0.316",
    "cross-zip": "^4.0.1",
    "ts-loader": "^9.0.0",
    "typescript": "^5.0.0",
    "webpack": "^5.0.0",
    "webpack-cli": "^4.0.0"
    },
    "dependencies": {
    "javascript-obfuscator": "^4.1.1",
    "webpack-obfuscator": "^3.5.1"
    }
    }

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