opal/zeitwerk/kernel.rb in opal-zeitwerk-0.2.2 vs opal/zeitwerk/kernel.rb in opal-zeitwerk-0.2.3

- old
+ new

@@ -7,9 +7,10 @@ alias_method :zeitwerk_original_require, :require # @param path [String] # @return [Boolean] def require(path) + path = `Opal.normalize(#{path})` if loader = Zeitwerk::Registry.loader_for(path) if `Opal.modules.hasOwnProperty(path)` zeitwerk_original_require(path).tap do |required| loader.on_file_autoloaded(path) if required end