Skip to content

Commit b2f671a

Browse files
authored
chore(build)!: drop node 16 support (#2744)
1 parent 9df8adb commit b2f671a

File tree

6 files changed

+6
-6
lines changed

6 files changed

+6
-6
lines changed

.github/workflows/test.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323

2424
strategy:
2525
matrix:
26-
node_version: [16, 18, 20]
26+
node_version: [18, 20]
2727

2828
steps:
2929
- name: Checkout

docs/guide/deploy.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ Set up a new project and change these settings using your dashboard:
111111

112112
- **Build Command:** `npm run docs:build`
113113
- **Output Directory:** `docs/.vitepress/dist`
114-
- **Node Version:** `16` (or above, by default it usually will be 14 or 16, but on Cloudflare Pages the default is still 12, so you may need to [change that](https://developers.cloudflare.com/pages/platform/build-configuration/))
114+
- **Node Version:** `18` (or above)
115115

116116
::: warning
117117
Don't enable options like _Auto Minify_ for HTML code. It will remove comments from output which have meaning to Vue. You may see hydration mismatch errors if they get removed.

docs/guide/getting-started.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ You can try VitePress directly in your browser on [StackBlitz](https://vitepress
88

99
### Prerequisites
1010

11-
- [Node.js](https://nodejs.org/) version 16 or higher.
11+
- [Node.js](https://nodejs.org/) version 18 or higher.
1212
- Terminal for accessing VitePress via its command line interface (CLI).
1313
- Text Editor with [Markdown](https://en.wikipedia.org/wiki/Markdown) syntax support.
1414
- [VSCode](https://code.visualstudio.com/) is recommended, along with the [official Vue extension](https://marketplace.visualstudio.com/items?itemName=Vue.volar).

netlify.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[build.environment]
2-
NODE_VERSION = "16"
2+
NODE_VERSION = "18"
33

44
[build]
55
publish = "docs/.vitepress/dist"

rollup.config.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ const plugins = [
4242
}),
4343
commonjs(),
4444
nodeResolve({ preferBuiltins: false }),
45-
esbuild({ target: 'node14' }),
45+
esbuild({ target: 'node18' }),
4646
json()
4747
]
4848

src/node/tsconfig.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"extends": "../../tsconfig.json",
33
"compilerOptions": {
4-
"target": "es2020",
4+
"target": "es2022",
55
"baseUrl": ".",
66
"outDir": "../../dist/node",
77
"module": "esnext",

0 commit comments

Comments
 (0)