From 0e52ad89c5eab809472ce3a9d2ab517a3ac22853 Mon Sep 17 00:00:00 2001 From: Hiroki Osame Date: Tue, 14 Nov 2023 14:19:26 +0900 Subject: [PATCH] fix: suppress loader warning in v18.0.0 --- src/suppress-warnings.cts | 4 ++++ tests/utils/node-versions.ts | 1 + 2 files changed, 5 insertions(+) diff --git a/src/suppress-warnings.cts b/src/suppress-warnings.cts index 5a9cce2a3..b34c871bd 100644 --- a/src/suppress-warnings.cts +++ b/src/suppress-warnings.cts @@ -1,6 +1,10 @@ // Deprecated: Move to preflight.cts & delete entry-point in next major const ignoreWarnings = new Set([ + + // v18.0.0 + 'Custom ESM Loaders is an experimental feature. This feature could change at any time', + // Changed in Node v18.13.0 via https://github.com/nodejs/node/pull/45424 'Custom ESM Loaders is an experimental feature and might change at any time', diff --git a/tests/utils/node-versions.ts b/tests/utils/node-versions.ts index dd53ce962..ba824b3a7 100644 --- a/tests/utils/node-versions.ts +++ b/tests/utils/node-versions.ts @@ -8,6 +8,7 @@ export const nodeVersions = [ ? [ '20', '18', + '18.0.0', ] as const : [] as const ),