esrap 2.2.7 → 2.2.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1406,6 +1406,8 @@ export default (options = {}) => {
|
|
|
1406
1406
|
},
|
|
1407
1407
|
|
|
1408
1408
|
ImportSpecifier(node, context) {
|
|
1409
|
+
if (node.importKind == 'type') context.write('type ');
|
|
1410
|
+
|
|
1409
1411
|
if (
|
|
1410
1412
|
node.local.type === 'Identifier' &&
|
|
1411
1413
|
node.imported.type === 'Identifier' &&
|
|
@@ -1415,7 +1417,6 @@ export default (options = {}) => {
|
|
|
1415
1417
|
context.write(' as ');
|
|
1416
1418
|
}
|
|
1417
1419
|
|
|
1418
|
-
if (node.importKind == 'type') context.write('type ');
|
|
1419
1420
|
context.visit(node.local);
|
|
1420
1421
|
},
|
|
1421
1422
|
|