Skip to content

Commit

Permalink
fix: handle experimental warning in Node v18.13.0
Browse files Browse the repository at this point in the history
  • Loading branch information
privatenumber committed Jan 9, 2023
1 parent 4c646a7 commit 67837e8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions src/suppress-warnings.cts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
const ignoreWarnings = new Set([
'--experimental-loader is an experimental feature. This feature could change at any time',
'Custom ESM Loaders is an experimental feature. This feature could change at any time',

// Changed in Node v18.13.0 via PR #45424
'Custom ESM Loaders is an experimental feature and might change at any time',
]);

const { emit } = process;
Expand Down
2 changes: 1 addition & 1 deletion tests/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const nodeVersions = [
'14.19.1',
'16.13.2',
'17.8.0',
'18.0.0',
'18.13.0',
]
: []
),
Expand Down

0 comments on commit 67837e8

Please sign in to comment.