Skip to content

Commit 4bcad10

Browse files
committed
esm: update loaders warning
1 parent 2a14a79 commit 4bcad10

File tree

2 files changed

+0
-6
lines changed

2 files changed

+0
-6
lines changed

lib/internal/modules/esm/loader.js

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -498,7 +498,6 @@ class CustomizedModuleLoader {
498498
}
499499
}
500500

501-
let emittedExperimentalWarning = false;
502501
/**
503502
* A loader instance is used as the main entry point for loading ES modules. Currently, this is a singleton; there is
504503
* only one used for loading the main module and everything in its dependency graph, though separate instances of this
@@ -514,10 +513,6 @@ function createModuleLoader(useCustomLoadersIfPresent = true) {
514513
!require('internal/modules/esm/utils').isLoaderWorker()) {
515514
const userLoaderPaths = getOptionValue('--experimental-loader');
516515
if (userLoaderPaths.length > 0) {
517-
if (!emittedExperimentalWarning) {
518-
emitExperimentalWarning('Custom ESM Loaders');
519-
emittedExperimentalWarning = true;
520-
}
521516
customizations = new CustomizedModuleLoader();
522517
}
523518
}

test/es-module/test-esm-experimental-warnings.mjs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ describe('ESM: warn for obsolete hooks provided', { concurrency: true }, () => {
2525
describe('experimental warnings for enabled experimental feature', () => {
2626
for (
2727
const [experiment, arg] of [
28-
[/Custom ESM Loaders/, `--experimental-loader=${fileURL('es-module-loaders', 'hooks-custom.mjs')}`],
2928
[/Network Imports/, '--experimental-network-imports'],
3029
]
3130
) {

0 commit comments

Comments
 (0)