babel-preset-rsmax
TypeScript icon, indicating that this package has built-in type declarations

1.3.11 • Public • Published

babel-preset-rsmax

Babel preset for rsmax app.

  yarn add babel-preset-rsmax --dev

Options

react

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,
      },
    ],
  ];
}

Readme

Keywords

none

Package Sidebar

Install

npm i babel-preset-rsmax

Weekly Downloads

745

Version

1.3.11

License

MIT

Unpacked Size

46.6 kB

Total Files

9

Last publish

Collaborators

  • watsonhaw