alibaba / alibaba/lowcode-engine
函数/表达式/源码 编辑代码的编译
- Dominant language
- TypeScript
- Stars
- 15.9k
- Forks
- 2.7k
- PR merge metrics
- No merged PRs in 30d
Description
**描述:**
在源码面板/数据源面板/变量绑定面板中新增编辑了函数/表达式。
通过react-render runtime直接执行schema。
函数和表达式的代码没有经过编译,会有兼容性问题。
---
## **如何复现 bug?(必填,非常重要)**
详细复现步骤:
1. 编写async/await函数
2. 拖入一个标题组件,onClick事件绑定该函数。
3. 在IE11浏览器中预览并进行点击标题
4. async/await语法不支持
## **Expected behavior (required)** / **预期行为(必填,非常重要)**
预期ES6+语法编译为ES5,支持通用浏览器。
---
## **Screenshots (optional)** / **bug 截图(可选)**
---
## **Environments (please complete the following information) (required):** / **请提供如下信息(必填)**
- 低代码引擎版本 【1.0.13】
- 低代码引擎扩展包版本 ///
- 浏览器版本 【IE 11】
- materials / plugins / tools / 其他物料 / 插件 / 工具链版本 ////
> (this information can be collected via [the manual plugin](https://img.alicdn.com/imgextra/i1/O1CN0115zonY1IsgbkZ2ir7_!!6000000000949-2-tps-3066-1650.png) / 版本信息可[通过低代码用户手册插件收集](https://img.alicdn.com/imgextra/i1/O1CN0115zonY1IsgbkZ2ir7_!!6000000000949-2-tps-3066-1650.png))
## **Additional context (optional)** / **更多额外信息(可选)**
Any other context of the problem here. / 可以追加更多的额外信息,帮助定位问题
Contributor guide
No contributing guide indexed for this repository
Research direction
Start with the source panel, data source panel, and variable binding panel entry points, then trace how their functions and expressions reach the react-render runtime. Reproduce the async/await click case in IE11 or an equivalent compatibility test; done means ES6+ code executes as ES5 without changing the binding behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- react, typescript
- Domain
- frontend, web-dev
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100