diff --git a/docs/enabling-decorators.md b/docs/enabling-decorators.md index aaa2ad976..8e14b78ac 100644 --- a/docs/enabling-decorators.md +++ b/docs/enabling-decorators.md @@ -39,6 +39,28 @@ With modern decorators, it is no longer needed to call `makeObservable` / `makeA } ``` +- Vite configuration + +```js +// vite.config.js +{ + plugins: [ + react({ + babel: { + plugins: [ + [ + "@babel/plugin-proposal-decorators", + { + version: "2023-05", + }, + ], + ], + }, + }), + ] +} +``` + ## Using decorators ```javascript