stephenmathieson / node-obfuscator

maintainer wanted → Obfuscate your node packages because your boss says so!
216 stars 36 forks source link

TypeError: Cannot set property '.jse' of undefined #23

Closed manuks closed 9 years ago

manuks commented 9 years ago

Hi,

I was trying to obfuscate a code with

    require.extensions['.jse] = function(module, filename) {
        var content = fs.readFileSync(filename, 'utf8');
        return module._compile(content, filename);
    };

But got the following error when the output file is executed TypeError: Cannot set property '.jse' of undefined

How to fix this? Any clue?

stephenmathieson commented 9 years ago

node deprecated require.extensions a long time ago. i've documented the fact that it doesn't work with obfuscator, and have no intentions of adding support for it.

closing as "will not fix".