Skip to content

Commit 72abb5f

Browse files
committed
feat!: drop node 16 & webpack 4 support
1 parent 0b5072f commit 72abb5f

File tree

4 files changed

+6
-17
lines changed

4 files changed

+6
-17
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,11 @@ jobs:
1313
runs-on: ubuntu-latest
1414
steps:
1515
- uses: actions/checkout@v4
16+
- run: corepack enable
1617
- uses: actions/setup-node@v4
1718
with:
1819
node-version: lts/*
19-
- run: corepack enable
20+
cache: pnpm
2021
- run: npm i -g @antfu/ni
2122
- run: nci
2223
- run: nr lint
@@ -56,15 +57,3 @@ jobs:
5657

5758
- name: Test
5859
run: pnpm run test
59-
60-
- name: Install Webpack 4
61-
run: pnpm i webpack@4
62-
if: ${{ matrix.node == 16 }}
63-
env:
64-
IS_WEBPACK_4: 'true'
65-
66-
- name: Test with Webpack 4
67-
run: pnpm run test
68-
if: ${{ matrix.node == 16 }}
69-
env:
70-
IS_WEBPACK_4: 'true'

eslint.config.js renamed to eslint.config.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// @ts-check
2-
const antfu = require('@antfu/eslint-config').default
2+
import antfu from '@antfu/eslint-config'
33

4-
module.exports = antfu(
4+
export default antfu(
55
{
66
ignores: [
77
'test-out/**',

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
"dist"
3030
],
3131
"engines": {
32-
"node": ">=14.0.0"
32+
"node": ">=18.12.0"
3333
},
3434
"scripts": {
3535
"build": "tsup",

tsup.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ export const tsup: Options = {
66
sourcemap: false,
77
clean: true,
88
format: ['cjs', 'esm'],
9-
target: 'node14',
9+
target: 'node18.12',
1010
dts: true,
1111
shims: true,
1212
entry: [

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy