Skip to content

Commit

Permalink
chore(build)!: drop node 16 support (#2744)
Browse files Browse the repository at this point in the history
  • Loading branch information
brc-dd committed Aug 8, 2023
1 parent 9df8adb commit b2f671a
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:

strategy:
matrix:
node_version: [16, 18, 20]
node_version: [18, 20]

steps:
- name: Checkout
Expand Down
2 changes: 1 addition & 1 deletion docs/guide/deploy.md
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ Set up a new project and change these settings using your dashboard:

- **Build Command:** `npm run docs:build`
- **Output Directory:** `docs/.vitepress/dist`
- **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/))
- **Node Version:** `18` (or above)

::: warning
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.
Expand Down
2 changes: 1 addition & 1 deletion docs/guide/getting-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ You can try VitePress directly in your browser on [StackBlitz](https://vitepress

### Prerequisites

- [Node.js](https://nodejs.org/) version 16 or higher.
- [Node.js](https://nodejs.org/) version 18 or higher.
- Terminal for accessing VitePress via its command line interface (CLI).
- Text Editor with [Markdown](https://en.wikipedia.org/wiki/Markdown) syntax support.
- [VSCode](https://code.visualstudio.com/) is recommended, along with the [official Vue extension](https://marketplace.visualstudio.com/items?itemName=Vue.volar).
Expand Down
2 changes: 1 addition & 1 deletion netlify.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[build.environment]
NODE_VERSION = "16"
NODE_VERSION = "18"

[build]
publish = "docs/.vitepress/dist"
Expand Down
2 changes: 1 addition & 1 deletion rollup.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ const plugins = [
}),
commonjs(),
nodeResolve({ preferBuiltins: false }),
esbuild({ target: 'node14' }),
esbuild({ target: 'node18' }),
json()
]

Expand Down
2 changes: 1 addition & 1 deletion src/node/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"extends": "../../tsconfig.json",
"compilerOptions": {
"target": "es2020",
"target": "es2022",
"baseUrl": ".",
"outDir": "../../dist/node",
"module": "esnext",
Expand Down

0 comments on commit b2f671a

Please sign in to comment.