Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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 函数编译插件
- Host: GitHub
- URL: https://github.com/wechat-miniprogram/babel-plugin-worklet
- Owner: wechat-miniprogram
- License: mit
- Created: 2022-08-24T12:28:40.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2023-09-19T08:49:35.000Z (over 1 year ago)
- Last Synced: 2024-12-09T14:45:03.031Z (25 days 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',
],
};
```