* - Lazily import the code transformer * - Return a fresh or reused instance of the code transformer
()
| 97 | * - Return a fresh or reused instance of the code transformer |
| 98 | */ |
| 99 | async #getCodeTransformer() { |
| 100 | try { |
| 101 | if (!this.#codeTransformer) { |
| 102 | const { CodeTransformer } = await import('@adonisjs/assembler/code_transformer') |
| 103 | this.#codeTransformer = new CodeTransformer(this.#app.appRoot) |
| 104 | } |
| 105 | |
| 106 | return this.#codeTransformer |
| 107 | } catch { |
| 108 | return null |
| 109 | } |
| 110 | } |
| 111 | |
| 112 | /** |
| 113 | * Returns the installation command for different |
no outgoing calls
no test coverage detected