babel-plugin-tiny-import
Advanced tools
Comparing version 0.0.4 to 0.0.5
@@ -71,4 +71,7 @@ /** | ||
return moduleName.replace(/\/*$/, '/') | ||
+ moduleMapper.trim().replace(/^\/*(.*)\/*$/, '$1') | ||
+ imported.replace(/^\/*/, '/') | ||
+ (moduleMapper && moduleMapper.trim() | ||
? moduleMapper.trim().replace(/^\/*(.*?)\/*$/, '$1/') | ||
: '' | ||
) | ||
+ imported.replace(/^\/*/, '') | ||
} | ||
@@ -75,0 +78,0 @@ })(moduleMapper) |
{ | ||
"name": "babel-plugin-tiny-import", | ||
"version": "0.0.4", | ||
"version": "0.0.5", | ||
"description": "split import from wrap package", | ||
@@ -5,0 +5,0 @@ "private": false, |
18142
358