Currently, the map detection code is added to every piece of transpiled code inside the "Generated by..." rule.
Its more optimal and clean to only include it if its used, either at the beginning of the script or before the rule that first uses it, with the rule comment indicating what's its purpose.
Currently, the map detection code is added to every piece of transpiled code inside the "Generated by..." rule. Its more optimal and clean to only include it if its used, either at the beginning of the script or before the rule that first uses it, with the rule comment indicating what's its purpose.