create-neat icon indicating copy to clipboard operation
create-neat copied to clipboard

feat: 🚀 新增 swc 插件

Open xun082 opened this issue 1 year ago • 3 comments

PR Checklist

Please check if your PR fulfills the following requirements:

  • [x] The commit message follows our guidelines: https://github.com/xun082/create-neat/blob/master/CONTRIBUTING.md
  • [ ] Tests for the changes have been added (for bug fixes / features)
  • [ ] Docs have been added / updated (for bug fixes / features)

PR Type

What kind of change does this PR introduce?

[ ] Bugfix
[ √] Feature
[ ] Code style update (formatting, local variables)
[ ] Refactoring (no functional changes, no api changes)
[ ] Build related changes
[ ] CI related changes
[ ] Other... Please describe:

What is the current behavior?

  • Closes #169
  • Related to #24

What is the new behavior?

新增 swc 插件

Does this PR introduce a breaking change?

[ ] Yes
[ x] No

Other information

xun082 avatar May 14 '24 14:05 xun082

Image description CodeRabbit


Uplevel your code reviews with CodeRabbit Pro

CodeRabbit Pro

If you like this project, please support us by purchasing the Pro version. The Pro version has advanced context, superior noise reduction and several proprietary improvements compared to the open source version. Moreover, CodeRabbit Pro is free for open source projects.

github-actions[bot] avatar May 14 '24 14:05 github-actions[bot]

没啥问题,看看本地测试结果可以跑嘛,项目产物符合 swc 的功能预期吗

配置文件是一个.swcrc这样的,没什么问题

xun082 avatar May 14 '24 15:05 xun082

tql m 神 u 神

winchesHe avatar May 14 '24 15:05 winchesHe

没啥问题,看看本地测试结果可以跑嘛,项目产物符合 swc 的功能预期吗

配置文件是一个.swcrc这样的,没什么问题

预调研的swc目前前置条件是react,应加上前置限制。且有webpack和vite都有对应的插件。看文章说swc的ast转换和babel转换不一致,现在内部ast还是babel的,不知道这样放上去是否有问题。

Lemonadeccc avatar May 21 '24 06:05 Lemonadeccc