babel-plugin-tiny-import
Advanced tools
Comparing version 1.0.2 to 1.0.3
@@ -94,3 +94,3 @@ /** | ||
...finalResult, | ||
moduleName: nps.posix.join('.', nps.relative(resolveFromFile, finalResult.moduleName)), | ||
moduleName: './' + nps.posix.relative(nps.posix.dirname(resolveFromFile), finalResult.moduleName), | ||
} | ||
@@ -245,2 +245,5 @@ } | ||
ExportNamedDeclaration(path, state) { | ||
if (!path.node || !path.node.source) { | ||
return; | ||
} | ||
if (!match(state.opts.test, path.node.source.value) || state.opts.moduleMapper == null) return; | ||
@@ -247,0 +250,0 @@ var map = {}; |
{ | ||
"name": "babel-plugin-tiny-import", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"description": "split import from wrap package", | ||
@@ -5,0 +5,0 @@ "private": false, |
@@ -44,2 +44,3 @@ # babel-plugin-tiny-import | ||
basename: false, // true | false | string | ||
resolvePackageAsAbsolute, // boolean | https://www.npmjs.com/package/resolve options, false by default | ||
}, | ||
@@ -75,2 +76,2 @@ } | ||
let supported = require('lib/total/support'); | ||
``` | ||
``` |
22808
447
76