| 1 |
const wait = t => new Promise(r => setTimeout(r, t)); |
| 2 |
|
| 3 |
module.exports = async function plugin({ types: t }) { |
| 4 |
await wait(50); |
| 5 |
|
| 6 |
return { |
| 7 |
visitor: { |
| 8 |
Program(path) { |
| 9 |
path.pushContainer("body", t.stringLiteral("success")); |
| 10 |
}, |
| 11 |
}, |
| 12 |
}; |
| 13 |
}; |