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

2.15.21 • 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 @tiki-miniapp/babel-preset-remax

Weekly Downloads

1

Version

2.15.21

License

MIT

Unpacked Size

250 kB

Total Files

11

Last publish

Collaborators

  • han.han
  • nghoangvietvn
  • hungnguyentiki
  • lynhan-tiki
  • kiennt-tiki