Ignore transformation
transformation.ignore preserves named text during replacement. Use it for external property names, dependency interfaces, or other names that must remain stable.
Merge this fragment into your configuration:
{
"transformation": {
"ignore": ["external_value"]
}
}For a fresh runtime processing:
const m_value = external_value;
console.log(m_value);the output is:
const Ox0 = external_value;
console.log(Ox0);Ignored entries are added directly to the replacement map, even if a parser did not discover them. In the current implementation, ignore mappings take precedence over static mappings for the same original text.
From Codefend 3.3.0, static keys and ignore entries are treated as literal text rather than extra regular expressions. Use the exact spelling of the selected name: matching is case-sensitive. Matching text in strings and comments can also be selected; check external contracts and generated-name collisions.
Excluding files is a separate setting
transformation.ignore retains text; it does not prevent files from being copied. Use generation.ignore for exact file/directory names that should be excluded from the CLI input tree. For example, the generated default configuration both excludes the node_modules directory from copying and keeps the text node_modules unchanged.
Never rely on obfuscation to hide credentials. Keep secrets out of distributed source and firmware regardless of the ignore settings. See troubleshooting when a generated program fails.