Babel preset for rsmax app.
yarn add babel-preset-rsmax --dev
configure react preset. https://babeljs.io/docs/en/babel-preset-react
{
presets: [
[
'rsmax',
{
react: {
runtime: 'classic',
},
typescript: {
allowNamespaces: true,
},
'class-properties': {
loose: true,
},
decorators: {
legacy: true,
},
'throw-if-namespace': false,
},
],
];
}