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?
Asked
Active
Viewed 1,806 times
3

Dheeraj Vepakomma
- 26,870
- 17
- 81
- 104
1 Answers
1
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
}
}),
...
]

Eld0w
- 834
- 6
- 12