xun082 / create-neat

🚀🚀🚀 Developed a front-end scaffold based on PNPM and Turborepo, aimed at quickly creating various types of projects for users.
MIT License
474 stars 131 forks source link

fix: 修复由于插件配置中path.resolve提前执行导致webpack无法启动程序问题 #240

Closed IsDyh01 closed 4 months ago

IsDyh01 commented 4 months ago

PR Checklist

Please check if your PR fulfills the following requirements:

PR Type

What kind of change does this PR introduce?

What is the current behavior?

What is the new behavior?

目前将该loader的配置从插件配置文件中提取到了构建工具模板内,根据变量进行渲染

Does this PR introduce a breaking change?

Other information

后续考虑将ast逻辑进行重构,目前是获取对象类型的配置文件与模板的ast进行合并,对象类型的配置文件与ast合并时需要考虑各种情况,如果将配置文件也提前转化为ast,将两个ast去进行对比,可以直接将其中一个ast节点进行插入。

github-actions[bot] commented 4 months ago

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](https://coderabbit.ai). 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.