Skip to content

Commit 2826303

Browse files
authored
fix: mention that Node.js 13/15 support is dropped (fixes #9113) (#9116)
1 parent ec91f98 commit 2826303

File tree

12 files changed

+13
-13
lines changed

12 files changed

+13
-13
lines changed

.eslintrc.cjs

+2-2
Original file line numberDiff line numberDiff line change
@@ -137,13 +137,13 @@ module.exports = defineConfig({
137137
'node/no-unsupported-features/es-builtins': [
138138
'error',
139139
{
140-
version: '>=14.18.0'
140+
version: '^14.18.0 || >=16.0.0'
141141
}
142142
],
143143
'node/no-unsupported-features/node-builtins': [
144144
'error',
145145
{
146-
version: '>=14.18.0'
146+
version: '^14.18.0 || >=16.0.0'
147147
}
148148
]
149149
}

docs/blog/announcing-vite3.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ A triaging marathon was spearheaded by [@bluwyoo](https://twitter.com/bluwyoo),
223223

224224
## Compatibility Notes
225225

226-
- Vite no longer supports Node.js 12, which reached its EOL. Node.js 14.18+ is now required.
226+
- Vite no longer supports Node.js 12 / 13 / 15, which reached its EOL. Node.js 14.18+ / 16+ is now required.
227227
- Vite is now published as ESM, with a CJS proxy to the ESM entry for compatibility.
228228
- The Modern Browser Baseline now targets browsers which support the [native ES Modules](https://caniuse.com/es6-module), [native ESM dynamic import](https://caniuse.com/es6-module-dynamic-import), and [`import.meta`](https://caniuse.com/mdn-javascript_statements_import_meta) features.
229229
- JS file extensions in SSR and library mode now use a valid extension (`js`, `mjs`, or `cjs`) for output JS entries and chunks based on their format and the package type.

docs/guide/index.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ The supported template presets are:
3838
## Scaffolding Your First Vite Project
3939

4040
::: tip Compatibility Note
41-
Vite requires [Node.js](https://nodejs.org/en/) version >=14.18.0. However, some templates require a higher Node.js version to work, please upgrade if your package manager warns about it.
41+
Vite requires [Node.js](https://nodejs.org/en/) version 14.18+, 16+. However, some templates require a higher Node.js version to work, please upgrade if your package manager warns about it.
4242
:::
4343

4444
With NPM:

docs/guide/migration.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
## Node.js Support
44

5-
Vite no longer supports Node.js 12, which reached its EOL. Node.js 14.18+ is now required.
5+
Vite no longer supports Node.js 12 / 13 / 15, which reached its EOL. Node.js 14.18+ / 16+ is now required.
66

77
## Modern Browser Baseline change
88

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "vite-monorepo",
33
"private": true,
44
"engines": {
5-
"node": ">=14.18.0"
5+
"node": "^14.18.0 || >=16.0.0"
66
},
77
"homepage": "https://vitejs.dev/",
88
"keywords": [

packages/create-vite/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
## Scaffolding Your First Vite Project
44

55
> **Compatibility Note:**
6-
> Vite requires [Node.js](https://nodejs.org/en/) version >=14.18.0. However, some templates require a higher Node.js version to work, please upgrade if your package manager warns about it.
6+
> Vite requires [Node.js](https://nodejs.org/en/) version 14.18+, 16+. However, some templates require a higher Node.js version to work, please upgrade if your package manager warns about it.
77
88
With NPM:
99

packages/create-vite/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
],
1515
"main": "index.js",
1616
"engines": {
17-
"node": ">=14.18.0"
17+
"node": "^14.18.0 || >=16.0.0"
1818
},
1919
"repository": {
2020
"type": "git",

packages/plugin-legacy/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
"prepublishOnly": "npm run build"
2424
},
2525
"engines": {
26-
"node": ">=14.18.0"
26+
"node": "^14.18.0 || >=16.0.0"
2727
},
2828
"repository": {
2929
"type": "git",

packages/plugin-react/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
"prepublishOnly": "npm run build"
2828
},
2929
"engines": {
30-
"node": ">=14.18.0"
30+
"node": "^14.18.0 || >=16.0.0"
3131
},
3232
"repository": {
3333
"type": "git",

packages/plugin-vue-jsx/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
"prepublishOnly": "npm run build"
2424
},
2525
"engines": {
26-
"node": ">=14.18.0"
26+
"node": "^14.18.0 || >=16.0.0"
2727
},
2828
"repository": {
2929
"type": "git",

packages/plugin-vue/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
"prepublishOnly": "npm run build"
2424
},
2525
"engines": {
26-
"node": ">=14.18.0"
26+
"node": "^14.18.0 || >=16.0.0"
2727
},
2828
"repository": {
2929
"type": "git",

packages/vite/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
"types"
3333
],
3434
"engines": {
35-
"node": ">=14.18.0"
35+
"node": "^14.18.0 || >=16.0.0"
3636
},
3737
"repository": {
3838
"type": "git",

0 commit comments

Comments
 (0)