(options)
| 2110 | |
| 2111 | @ToolchainProfiler.profile_block('source transforms') |
| 2112 | def phase_source_transforms(options): |
| 2113 | # Apply a source code transformation, if requested |
| 2114 | global final_js |
| 2115 | safe_copy(final_js, final_js + '.tr.js') |
| 2116 | final_js += '.tr.js' |
| 2117 | posix = not WINDOWS |
| 2118 | logger.debug('applying transform: %s', options.js_transform) |
| 2119 | shared.check_call(remove_quotes([*shlex.split(options.js_transform, posix=posix), os.path.abspath(final_js)])) |
| 2120 | save_intermediate('transformed') |
| 2121 | |
| 2122 | |
| 2123 | # Unmangle previously mangled `await import` and `await` references in |
no test coverage detected