https://github.com/wechat-miniprogram/babel-plugin-worklet
小程序 worklet 函数编译插件
https://github.com/wechat-miniprogram/babel-plugin-worklet
Last synced: 5 months ago
JSON representation
小程序 worklet 函数编译插件
- Host: GitHub
- URL: https://github.com/wechat-miniprogram/babel-plugin-worklet
- Owner: wechat-miniprogram
- License: mit
- Created: 2022-08-24T12:28:40.000Z (almost 3 years ago)
- Default Branch: master
- Last Pushed: 2023-09-19T08:49:35.000Z (almost 2 years ago)
- Last Synced: 2025-02-01T03:18:39.168Z (5 months ago)
- Language: JavaScript
- Size: 12.7 KB
- Stars: 0
- Watchers: 5
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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',
],
};
```