@teleporthq/teleport-plugin-import-statements
Advanced tools
Comparing version 0.31.0-alpha.0 to 0.31.0
@@ -28,3 +28,3 @@ "use strict"; | ||
if (f) throw new TypeError("Generator is already executing."); | ||
while (_) try { | ||
while (g && (g = 0, op[0] && (_ = 0)), _) try { | ||
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t; | ||
@@ -70,3 +70,4 @@ if (y = 0, t) op = [op[0] & 2, t.value]; | ||
((_b = dependency.meta) === null || _b === void 0 ? void 0 : _b.importJustPath) || | ||
(dependency === null || dependency === void 0 ? void 0 : dependency.meta.needsWindowObject)) { | ||
(dependency === null || dependency === void 0 ? void 0 : dependency.meta.needsWindowObject) || | ||
(dependency === null || dependency === void 0 ? void 0 : dependency.type) === 'library') { | ||
return; | ||
@@ -73,0 +74,0 @@ } |
@@ -27,3 +27,3 @@ var __assign = (this && this.__assign) || function () { | ||
if (f) throw new TypeError("Generator is already executing."); | ||
while (_) try { | ||
while (g && (g = 0, op[0] && (_ = 0)), _) try { | ||
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t; | ||
@@ -67,3 +67,4 @@ if (y = 0, t) op = [op[0] & 2, t.value]; | ||
((_b = dependency.meta) === null || _b === void 0 ? void 0 : _b.importJustPath) || | ||
(dependency === null || dependency === void 0 ? void 0 : dependency.meta.needsWindowObject)) { | ||
(dependency === null || dependency === void 0 ? void 0 : dependency.meta.needsWindowObject) || | ||
(dependency === null || dependency === void 0 ? void 0 : dependency.type) === 'library') { | ||
return; | ||
@@ -70,0 +71,0 @@ } |
{ | ||
"name": "@teleporthq/teleport-plugin-import-statements", | ||
"version": "0.31.0-alpha.0", | ||
"version": "0.31.0", | ||
"description": "A plugin for handling import statements in JavaScript code", | ||
@@ -27,6 +27,6 @@ "author": "teleportHQ", | ||
"dependencies": { | ||
"@teleporthq/teleport-plugin-common": "^0.31.0-alpha.0", | ||
"@teleporthq/teleport-types": "^0.31.0-alpha.0" | ||
"@teleporthq/teleport-plugin-common": "^0.31.0", | ||
"@teleporthq/teleport-types": "^0.31.0" | ||
}, | ||
"gitHead": "a5289f88f2d0cf8aae4b93bf05777c5492dd86b2" | ||
"gitHead": "37c3970566832845c57f0ef11088a9214af720b2" | ||
} |
@@ -36,2 +36,3 @@ import { ASTBuilders } from '@teleporthq/teleport-plugin-common' | ||
const { importDefinitions = {} } = uidl | ||
collectedDependencies = { | ||
@@ -47,6 +48,8 @@ ...collectedDependencies, | ||
dependency.meta?.importJustPath || | ||
dependency?.meta.needsWindowObject | ||
dependency?.meta.needsWindowObject || | ||
dependency?.type === 'library' | ||
) { | ||
return | ||
} | ||
dependencies[dependencyRef] = { | ||
@@ -53,0 +56,0 @@ type: 'package', |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
78708
471