File tree Expand file tree Collapse file tree 1 file changed +0
-10
lines changed Expand file tree Collapse file tree 1 file changed +0
-10
lines changed Original file line number Diff line number Diff line change @@ -646,16 +646,12 @@ class HooksProxy {
646
646
}
647
647
ObjectSetPrototypeOf ( HooksProxy . prototype , null ) ;
648
648
649
- // TODO(JakobJingleheimer): Remove this when loaders go "stable".
650
- let globalPreloadWarningWasEmitted = false ;
651
-
652
649
/**
653
650
* A utility function to pluck the hooks from a user-defined loader.
654
651
* @param {import('./loader.js).ModuleExports } exports
655
652
* @returns {ExportedHooks }
656
653
*/
657
654
function pluckHooks ( {
658
- globalPreload,
659
655
initialize,
660
656
resolve,
661
657
load,
@@ -671,12 +667,6 @@ function pluckHooks({
671
667
672
668
if ( initialize ) {
673
669
acceptedHooks . initialize = initialize ;
674
- } else if ( globalPreload && ! globalPreloadWarningWasEmitted ) {
675
- process . emitWarning (
676
- '`globalPreload` has been removed; use `initialize` instead.' ,
677
- 'UnsupportedWarning' ,
678
- ) ;
679
- globalPreloadWarningWasEmitted = true ;
680
670
}
681
671
682
672
return acceptedHooks ;
You can’t perform that action at this time.
0 commit comments