babel-plugin-atom-demand
Advanced tools
Comparing version 0.0.1-beta.1 to 0.0.1-beta.2
@@ -1,2 +0,2 @@ | ||
"use strict"; | ||
'use strict'; | ||
@@ -10,7 +10,6 @@ Object.defineProperty(exports, "__esModule", { | ||
var type = _ref.type, | ||
imported = _ref.imported, | ||
local = _ref.local; | ||
if (type === 'ImportSpecifier') { | ||
path.insertBefore(t.importDeclaration([t.importDefaultSpecifier(t.identifier(imported.name))], t.stringLiteral("vue-atom-ui/lib/" + imported.name))); | ||
path.insertBefore(t.importDeclaration([t.importDefaultSpecifier(t.identifier(local.name))], t.stringLiteral('vue-atom-ui/lib/' + local.name))); | ||
// TODO | ||
@@ -26,2 +25,4 @@ // 暂时引入全局css 后期跟随 atom-ui-mobile 修改 | ||
// } | ||
} else if (type === 'ImportDefaultSpecifier') { | ||
path.insertBefore(t.importDeclaration([t.importDefaultSpecifier(t.identifier(local.name))], t.stringLiteral('vue-atom-ui/lib/' + local.name))); | ||
} | ||
@@ -28,0 +29,0 @@ }); |
{ | ||
"name": "babel-plugin-atom-demand", | ||
"version": "0.0.1-beta.1", | ||
"version": "0.0.1-beta.2", | ||
"description": "babel plugin for import atom on demand", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
3994
37