Open
Description
Current Behavior
Obfuscating via a grunt task or manually, the Error: $injector:modulerr Module Error is given, without any more context
Steps to Reproduce
- Run obfuscator before or after concatenation. Run it manually or via task.
- Run with or without babel-plugin-angularjs-annotate.
- Lift app and load page...
- Output of Error: $injector:modulerr Module Error is reported.
Environment
- Obfuscator version used: v1.17.3
- Node version used: v12.22.5
- AngularJS: v1.5.10
- SailsJS: v1.4.3
Task Config
module.exports = function (grunt) {
grunt.config.set('javascript_obfuscator', {
options: {
compact: true,
controlFlowFlattening: false,
deadCodeInjection: false,
debugProtection: false,
debugProtectionInterval: false,
disableConsoleOutput: false,
identifierNamesGenerator: 'hexadecimal',
log: false,
numbersToExpressions: false,
renameGlobals: false,
rotateStringArray: true,
selfDefending: true,
shuffleStringArray: true,
simplify: true,
splitStrings: false,
stringArray: true,
stringArrayEncoding: [],
stringArrayIndexShift: true,
stringArrayWrappersCount: 1,
stringArrayWrappersChainedCalls: true,
stringArrayWrappersParametersMaxCount: 2,
stringArrayWrappersType: 'variable',
stringArrayThreshold: 0.75,
unicodeEscapeSequence: false,
},
dist: {
src: ['.tmp/public/concat/production.js'],
dest: '.tmp/public/min/production.min.js',
},
})
grunt.loadNpmTasks('grunt-javascript-obfuscator')
}