rev-dep 1.5.3 → 1.5.4
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/dist/babel/index.js +4 -0
- package/package.json +1 -1
package/dist/babel/index.js
CHANGED
|
@@ -292,6 +292,10 @@ module.exports = function plugin({ types }, { tsConfigPath = (0, utils_1.findTsC
|
|
|
292
292
|
if (source.type !== 'StringLiteral') {
|
|
293
293
|
return;
|
|
294
294
|
}
|
|
295
|
+
if (node.specifiers.length === 0) {
|
|
296
|
+
// Skip imports without 'from'
|
|
297
|
+
return;
|
|
298
|
+
}
|
|
295
299
|
const shouldSkip = node[SKIP] || !shouldPathBeAnalyzed(source.value);
|
|
296
300
|
if (shouldSkip) {
|
|
297
301
|
return;
|