Skip to content

NestJS couldn't log some class names #1214

Description

@hkaraoglu

in NestJS, when I start app app in production mode (so by using obfuscated js file), it logs class names as _0x.....

Examples:

  • PrimaryDbContextModule -> _0x23db20
  • AppModule -> _0x202e0a
  • LoggerModule -> _0x2e3cc7

Expected Behavior

image

Current Behavior

image

Steps to Reproduce

webpack.config.js

const WebpackObfuscator = require('webpack-obfuscator');

module.exports = function (options)
{
    return {
        ...options,
        devtool: 'inline-source-map',
        plugins: [
            new WebpackObfuscator({
                rotateStringArray: true,
                sourceMap: true,
                optionsPreset: 'high-obfuscation',
                disableConsoleOutput: false,
            }, [])
        ]
    }
}

Your Environment

  • Obfuscator version used: v4.1.0
  • Node version used: v18.17.0

Stack trace

Minimal working example that will help to reproduce issue

Activity

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