You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I wanted to use a new import feature to read a json file using the import name from './names.json' assert { type: 'json' };
syntax. Now I understand that since this is not part of the official standard yet, this doesn't work with the javascript-obfuscator.
However, digging a bit deeper I saw that javascript-obfuscator uses esprima (through escodegen) to parse the javascript files. Looking at that dependency it appears that the last release was six years ago and that there is no activity on that project. If my observation is correct javascript-obfuscator is limited to ECMAScript 2019 an no new language features will be supported.
My question: are there plans to overcome this limitation (e.g. use the esprima-next fork), or should I use a different strategy to obfuscate my files (transpiling first e.g.)
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I wanted to use a new import feature to read a json file using the
import name from './names.json' assert { type: 'json' };
syntax. Now I understand that since this is not part of the official standard yet, this doesn't work with the javascript-obfuscator.
However, digging a bit deeper I saw that javascript-obfuscator uses
esprima
(through escodegen) to parse the javascript files. Looking at that dependency it appears that the last release was six years ago and that there is no activity on that project. If my observation is correct javascript-obfuscator is limited to ECMAScript 2019 an no new language features will be supported.My question: are there plans to overcome this limitation (e.g. use the esprima-next fork), or should I use a different strategy to obfuscate my files (transpiling first e.g.)
Beta Was this translation helpful? Give feedback.
All reactions