在微信小程序中, 配合antv/f2-wx开发过程中jsx无法自动编译. 已在package.json的script中配置了beforeCompile
- Dominant language
- JavaScript
- Stars
- 8k
- Forks
- 637
- PR merge metrics
- No merged PRs in 30d
Description
- [ ] I have searched the [issues](https://github.com/antvis/f2/issues) of this repository and believe that this is not a duplicate.
### Reproduction link
[https://github.com/tsja2001/antv-f2-wx-issue](https://github.com/tsja2001/antv-f2-wx-issue)
### Steps to reproduce
运行小程序, 点击进入柱状图页面, 修改/pages/antv/rect-base/chart.jsx 文件, 不会自动编译成.js文件. 需要手动执行npm run beforeCompile, 才能编译
| Environment | Info |
|---|---|
| f2 | 5.0.14 |
| System | - |
| Browser | 微信小程序 |
Contributor guide
Research direction
Start with the reproduction project at https://github.com/tsja2001/antv-f2-wx-issue and inspect package.json alongside pages/antv/rect-base/chart.jsx. Run the WeChat mini program, edit the JSX file, and compare that behavior with npm run beforeCompile. Done means changes to the JSX file are automatically compiled to a .js file without manually running the command.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- build-system, mobile
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 35/100