Open AlbertoMeQ opened 11 months ago
most likely not a javascript-obfuscator issue since it errors while parsing
bundlers/build-tools commonly convert import { foo } from 'lib'; foo();
to const lib = require(1); (0, lib.foo)();
RN or any of its dependencies tries to do the same for tagged templates but ends up generating invalid js
it should be:
var o=(0,y.xliterate)`<root><p>Return to project's</p><link>updated ${(n=h.call(this,e)).props.agreementType}.</link></root>`;
Oh, interesting!
Do you know of any way to debug which step/tool is making that issue? If I remove the obfuscator, the build completes properly. So it's kind of hard to know exactly what step is failing.
Here is my setup:
I've been using the obfuscator for a while and I've just recently updated to RN 0.72.5 and I started getting this error on build. Here is the configuration and error:
This is the line referred by the error:
Which is this function:
When I check the code, I see that this line:
var o=0,y.xliterate
Return to project's
updated ${(n=h.call(this,e)).props.agreementType}.;
Has an invalid
,
which is probably why this is failing. How can I prevent that from happening? I don't mind loosening the configuration if that means the code won't break randomly.