We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 557766d commit a9f7c41Copy full SHA for a9f7c41
lib/importmap/map.rb
@@ -145,7 +145,7 @@ def module_name_from(filename, mapping)
145
end
146
147
def module_path_from(filename, mapping)
148
- [ mapping.path || mapping.under, filename.to_s ].compact.join("/")
+ [ mapping.path || mapping.under, filename.to_s ].compact.reject(&:empty?).join("/")
149
150
151
def find_javascript_files_in_tree(path)
0 commit comments