rstackjs / rstackjs/rsbuild-plugin-check-syntax
When minify: false is configured, the message Find some syntax that does not match "ecmaVersion <= 5": #15 is displayed
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 21
- Forks
- 8
- Avg merge
- 6h 26m
- Merged PRs (30d)
- 5
Description
当我构建时配置
output: {
minify: false,
}
同一个项目,构建时就会提示Find some syntax that does not match "ecmaVersion <= 5",可以是如果不配置minify, 构建就是成功的,没有发现 ES6 语法,为什么呢?压缩为什么对这个插件的结果有影响呢?
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the build using the reported output configuration with minify set to false, then compare it with the same project without that setting. Trace the plugin's syntax check for the generated output and determine why minification changes the reported ECMAScript compatibility; done means the discrepancy is fixed or clearly documented with a regression test.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- build-system
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100