| 1 |
module.exports = function (api) { |
| 2 |
const { types: t } = api; |
| 3 |
|
| 4 |
const targets = api.targets(); |
| 5 |
|
| 6 |
return { |
| 7 |
visitor: { |
| 8 |
Program(path) { |
| 9 |
const output = t.stringLiteral(`plugin: ${JSON.stringify(targets)}`); |
| 10 |
path.pushContainer("body", output); |
| 11 |
}, |
| 12 |
}, |
| 13 |
}; |
| 14 |
}; |