lib/jekyll/esm.rb in jekyll-esm-0.2.4.1 vs lib/jekyll/esm.rb in jekyll-esm-0.2.5
- old
+ new
@@ -29,9 +29,10 @@
importmap = JSON.parse(value.children[0].content)
imports = importmap["imports"]
imports.keys.each do |import_key|
# ignore urls
next if import_key =~ /https?:\/\/[\S]+/
+ next if imports[import_key] =~ /https?:\/\/[\S]+/
# ignore relative paths
next if import_key =~ /(^\.+\/)+/
# ignore absolute paths
next if import_key =~ /^\/[\S]+/