()
| 100 | return { resolve: { alias } }; |
| 101 | }, |
| 102 | async buildStart() { |
| 103 | if (done) return; |
| 104 | const disabled = process.env.NS_PRELINK === '0' || process.env.NS_PRELINK === 'false'; |
| 105 | if (disabled) return; |
| 106 | // Fallback: in case config() path was skipped (edge), run once. |
| 107 | for (const pkg of pkgs) { |
| 108 | await prelinkPackage(req, pkg, cacheRoot, false); |
| 109 | } |
| 110 | done = true; |
| 111 | }, |
| 112 | }; |
| 113 | } |
nothing calls this directly
no test coverage detected