Hi,
I am trying to package my code with pkg after obfuscating my code but getting
Dynamic require may fail at run time, because the requested file
is unknown at compilation time and not included into executable.
Use a string literal as an argument for 'require', or leave it
as is and specify the resolved file name in 'scripts' option.
what's the best practice to create an output that be easy to create .exe file?
Hi. Right now you can use the conditional comments or reservedStrings to disable obfuscation of require.
But seems I have to create an option to ignore obfuscation of strings inside require imports.
an option would be great because it has problem with almost all of my require imports.
I'll create the PR with this feature tomorrow
Released as ignoreRequireImports option in 2.8.0
it is working now. thanks!
Most helpful comment
Released as
ignoreRequireImportsoption in2.8.0