Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

vite 版本升级到 5.x #3425

Closed
wangjue666 opened this issue Dec 16, 2023 · 3 comments
Closed

vite 版本升级到 5.x #3425

wangjue666 opened this issue Dec 16, 2023 · 3 comments
Labels
enhancement New feature or request pr welcome Welcome developers to submit Pull Requests to the project

Comments

@wangjue666
Copy link
Collaborator

当前依赖版本为 4.x

vite5 主要变化

要注意的地方

Node.js Support
Vite no longer supports Node.js 14 / 16 / 17 / 19, which reached its EOL. Node.js 18 / 20+ is now required.

@wangjue666 wangjue666 added pr welcome Welcome developers to submit Pull Requests to the project enhancement New feature or request labels Dec 16, 2023
@xingyuv
Copy link

xingyuv commented Jan 4, 2024

#3465
这个pr抽时间看一下,如果没问题,后面就升级vite,vite有一些依赖版本都升级了

@wangjue666
Copy link
Collaborator Author

@xingyuv ok

@xingyuv xingyuv mentioned this issue Jan 5, 2024
16 tasks
@xingyuv
Copy link

xingyuv commented Jan 8, 2024

  1. 为什么改成cjs后缀,因为现在的eslint配置,不用cjs就会报错的
  2. 怎么解决,需要把内置的 eslint-config 重写成 esm 模式,然后把 .eslintrc.cjs 更名为 eslint.config.js 并且里面的配置内容要更新一下,详情可看官方文档说明

@github-actions github-actions bot locked and limited conversation to collaborators Aug 11, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request pr welcome Welcome developers to submit Pull Requests to the project
Projects
None yet
Development

No branches or pull requests

2 participants