Skip to content

Latest commit

 

History

History
25 lines (19 loc) · 451 Bytes

README.md

File metadata and controls

25 lines (19 loc) · 451 Bytes

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