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

0.4.8 • 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 @ray-core/babel-preset-remax

Weekly Downloads

293

Version

0.4.8

License

MIT

Unpacked Size

115 kB

Total Files

11

Last publish

Collaborators

  • tuyafe