```js
// /my-addon/.babelrc.js

module.exports = {
  presets: ["@babel/preset-env", "@babel/preset-react"],
};
```