(url: URL, contents: string)
| 6 | } |
| 7 | |
| 8 | function maybeWriteFile(url: URL, contents: string) { |
| 9 | try { |
| 10 | if (fs.readFileSync(url, "utf8") === contents) return; |
| 11 | } catch {} |
| 12 | fs.writeFileSync(url, contents); |
| 13 | } |
| 14 | |
| 15 | const thirdPartyBabelPlugins = [ |
| 16 | "@babel/preset-modules/lib/plugins/transform-async-arrows-in-class", |