Skip to content

wechat-miniprogram/babel-plugin-worklet

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

小程序 worklet 函数编译插件

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published