getkey / rollup-plugin-obfuscator

The most powerful rollup plugin for javascript-obfuscator.
Mozilla Public License 2.0
112 stars 9 forks source link

[!] (plugin rollup-plugin-obfuscator) RangeError: Maximum call stack size exceeded #2

Closed FDiskas closed 3 years ago

FDiskas commented 3 years ago

error says nothing more

[!] (plugin rollup-plugin-obfuscator) RangeError: Maximum call stack size exceeded
src\core\server\server.ts
RangeError: Maximum call stack size exceeded
    at Object.getMetadata (***\node_modules\reflect-metadata\Reflect.js:352:29)
    at o.getRandomGenerator (***\server\node_modules\javascript-obfuscator\dist\webpack:\javascript-obfuscator\src\decorators\Initializable.ts:58:30)
    at o.apply (***\server\node_modules\javascript-obfuscator\dist\webpack:\javascript-obfuscator\src\utils\RandomGenerator.ts:44:21)
    at o.getRandomInteger (***\server\node_modules\javascript-obfuscator\dist\webpack:\javascript-obfuscator\src\decorators\Initializable.ts:61:39)
    at o.generateNext (***\server\node_modules\javascript-obfuscator\dist\webpack:\javascript-obfuscator\src\generators\identifier-names-generators\HexadecimalIdentifierNamesGenerator.ts:31:52)
getkey commented 3 years ago

This is an error generated by javascript-obfuscator, and it's not caused by rollup-plugin-obfuscator, so I will close this issue. Could you open an issue upstream?

I have encountered this error myself at one point, as a workaround you can try increasing the Node.js memory with env NODE_OPTIONS='--max-old-space-size=3072' rollup -c rollup.config.prod.js.