dcloudio / dcloudio/uni-migration
生成rpk文件由于空格问题报错
Open
- Dominant language
- JavaScript
- Stars
- 143
- Forks
- 37
- PR merge metrics
- No merged PRs in 30d
Description
如题,小程序转换快应用时成功,生成rpk文件时由于空格压缩导致关键字和变量名粘合导致变量名命名中出现关键字导致报错。
具体代码如下:
快应用中代码:
let token = await _$$polyfill$$_.getStrageSync("token")
打包后的代码:
let token = await_$$polyfill$$_.getStrageSync("token");
打包的转换器在空格处理上是否有瑕疵呢
Contributor guide
No contributing guide indexed for this repository
Research direction
Reproduce the mini-program-to-Quick App conversion with the provided await and variable example, then trace the converter's whitespace or compression stage. Done means the generated rpk code keeps a separator between await and the variable expression and no longer produces the reported parse error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100