babel-plugin-worklet

0.0.7 • Public • Published

babel-plugin-worklet

Compile worklet function in wecht miniprogram.

Installation

npm install babel-plugin-worklet --save-dev

Add plugin to your babel.config.js:

module.exports = {
  presets: [
    ...
  ],
  plugins: [
    ...
    '@babel/plugin-transform-arrow-functions',
    '@babel/plugin-transform-shorthand-properties',
    ['@babel/plugin-proposal-class-properties', { loose: true }],
    'babel-plugin-worklet',
  ],
};

/babel-plugin-worklet/

    Package Sidebar

    Install

    npm i babel-plugin-worklet

    Weekly Downloads

    0

    Version

    0.0.7

    License

    MIT

    Unpacked Size

    19.2 kB

    Total Files

    4

    Last publish

    Collaborators

    • wechat-miniprogram