Formatjs provides a babel plugin for modules that use react-intl
to inject message IDs and remove description
. How can I use it with Vite?
If you're using @vitejs/plugin-react, you can specify a .babelrc or a babel.config.js.
import React from '@vitejs/plugin-react'
...
plugins: [
React({
babel: {
babelrc: true
}
}),
...
]
https://www.npmjs.com/package/@vitejs/plugin-react
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With