lib/jekyll/esm.rb in jekyll-esm-0.2.4 vs lib/jekyll/esm.rb in jekyll-esm-0.2.4.1
- old
+ new
@@ -36,10 +36,10 @@
# ignore absolute paths
next if import_key =~ /^\/[\S]+/
# ignore namespaces but only if it is not scoped
if import_key =~ /^@[\S]+/
- import = import_key.split('/')[0..2].join('/')
+ import = import_key.split('/')[0..1].join('/')
else
import = import_key.split('/').first
end
pkg_path = File.join(page.site.source, 'node_modules', import)