Please see javascript-obfuscator/javascript-obfuscator#276. javascript-obfuscator 0.17.0 support to specify an inputFileName for the original source file.
With Node API (all plugins are using this variant) obfuscator knows nothing about files. It obfuscating strings with source code and you should pass inputFileName value, so obfuscator will know name of the file that contains source code.
Please see javascript-obfuscator/javascript-obfuscator#276. javascript-obfuscator 0.17.0 support to specify an
inputFileName
for the original source file.