Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🤔 这个 PR 的性质是?
🔗 相关 Issue
💡 需求背景和解决方案
主要更改内容
1. 依赖版本升级
Farm 模板:
@farmfe/js-plugin-vue插件Vite 模板:
Webpack 模板:
2. 配置文件变更
新增文件:
templates/webpack/react-lite/babel.config.js- Babel 配置templates/webpack/react-lite/webpack.config.js- Webpack 配置templates/webpack/vue-lite/eslint.config.js- ESLint flat configtemplates/webpack/vue-next-lite/eslint.config.js- ESLint flat config修改文件:
templates/farm/vue-next-lite/farm.config.ts- 使用@farmfe/js-plugin-vue替代@vitejs/plugin-vuetemplates/webpack/vue-next-lite/vue.config.js- 简化 SVG 处理配置templates/webpack/vue-next-lite/src/App.vue- SVG 引用方式改为 img 标签3. 其他变更
vue-svg-loader和vue-loader-v16的使用📋 代码更改总结
一、依赖版本升级
二、新增配置文件
webpack/react-lite/babel.config.jswebpack/react-lite/webpack.config.jswebpack/vue-lite/eslint.config.jswebpack/vue-next-lite/eslint.config.js三、关键改动详情
1. Farm Vue3 模板 - 切换 Vue 插件
2. Webpack Vue3 模板 - 简化 SVG 处理
vue-svg-loader和vue-loader-v16<img>标签3. ESLint 迁移 - 采用新版 flat config
eslint.config.js(ESLint 10.x)eslintConfig配置块4. Webpack React 模板 - 增强配置
babel.config.js和webpack.config.js📝 更新日志
chore(template) 升级模板依赖至最新版本并优化 deploy 脚本
本条 PR 不需要纳入 Changelog
☑️ 请求合并前的自查清单