diff --git a/index.js b/index.js index 400af63..ab94750 100644 --- a/index.js +++ b/index.js @@ -115,7 +115,7 @@ module.exports = function ({ types: t }) { return t.variableDeclaration(path.node.kind, [ t.variableDeclarator( t.identifier(identifier.value.name), - isDefault(localName) + isDefault(identifier.key.name) ? t.memberExpression( t.callExpression(t.identifier('require'), [t.stringLiteral(distLocation)]), t.identifier('default')