Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/wechat-miniprogram/babel-plugin-worklet

小程序 worklet 函数编译插件
https://github.com/wechat-miniprogram/babel-plugin-worklet

Last synced: 3 days ago
JSON representation

小程序 worklet 函数编译插件

Awesome Lists containing this project

README

        

# babel-plugin-worklet

Compile worklet function in wecht miniprogram.

## Installation

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

Add plugin to your babel.config.js:

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