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

2.15.14 • Public • Published

babel-preset-remax

Babel preset for remax app.

  yarn add babel-preset-remax --dev

Options

react

configure react preset. https://babeljs.io/docs/en/babel-preset-react

typescript

configure typescript preset. https://babeljs.io/docs/en/babel-preset-typescript

decorators

configure babel proposal decorators. https://babeljs.io/docs/en/babel-plugin-proposal-decorators

class-properties

configure babel proposal class properties. https://babeljs.io/docs/en/babel-plugin-proposal-class-properties

throw-if-namespace

configure react preset throwIfNamespace option. https://babeljs.io/docs/en/babel-preset-react#throwifnamespace

{
  presets: [
    [
      'remax',
      {
        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-remax

Weekly Downloads

284

Version

2.15.14

License

MIT

Unpacked Size

246 kB

Total Files

11

Last publish

Collaborators

  • yesmeck
  • darmody
  • sydeevans