Closed ultranity closed 10 months ago
Unfortunately there isn't a good way to tell with 100% certainty if a property is mutated (as property keys can be generated at runtime e.g. it is unclear which property is being accessed in a[someFunction()]
).
What you can do is detect when the overall object is modified, and not replace anything in that case. This is available by setting config.objectSimplification.unsafeReplace
to false).
thanks for your explaination~
module StringRevealer
object default value should not be replaced globally if it
example:
current transform result:
expected: check if property is mutable(?) and skip StringRevealer for them