diff --git a/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb b/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb index 32d08630..9b25a6ed 100644 --- a/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb +++ b/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb @@ -11,6 +11,8 @@ def self.make_load_error(path) end module Kernel + private + alias_method :require_without_bootsnap, :require # Note that require registers to $LOADED_FEATURES while load does not.