Skip to content

Commit 44163ca

Browse files
authored
chore!: minimum supported Node.js version is 18.12.0 (#188)
1 parent b5f3a94 commit 44163ca

File tree

10 files changed

+2963
-1839
lines changed

10 files changed

+2963
-1839
lines changed

.github/workflows/nodejs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ jobs:
6060
strategy:
6161
matrix:
6262
os: [ubuntu-latest, windows-latest, macos-latest]
63-
node-version: [14.x, 16.x, 18.x, 20.x]
63+
node-version: [18.x, 20.x, 21.x]
6464
webpack-version: [latest]
6565

6666
runs-on: ${{ matrix.os }}

README.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,9 @@ import myLib from "imports-loader?imports=named|library|myMethod,angular!./examp
111111
```
112112

113113
```js
114-
const myLib = require(`imports-loader?type=commonjs&imports=single|jquery|$,angular!./example.js`);
114+
const myLib = require(
115+
`imports-loader?type=commonjs&imports=single|jquery|$,angular!./example.js`,
116+
);
115117
// `|` is separator in a query string, equivalently `single|jquery|$` and `angular`
116118
// Adds the following code to the beginning of example.js:
117119
//
@@ -124,7 +126,9 @@ const myLib = require(`imports-loader?type=commonjs&imports=single|jquery|$,angu
124126
```
125127

126128
```js
127-
const myLib = require(`imports-loader?type=commonjs&imports=single|myLib|myMethod&wrapper=window&!./example.js`);
129+
const myLib = require(
130+
`imports-loader?type=commonjs&imports=single|myLib|myMethod&wrapper=window&!./example.js`,
131+
);
128132
// `|` is separator in a query string, equivalently `single|myLib|myMethod` and `angular`
129133
// Adds the following code to the example.js:
130134
//

babel.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ module.exports = (api) => {
1010
"@babel/preset-env",
1111
{
1212
targets: {
13-
node: "14.15.0",
13+
node: "18.12.0",
1414
},
1515
},
1616
],

0 commit comments

Comments
 (0)