rev-dep 1.5.2 → 1.5.3
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 +2 -2
- package/package.json +1 -1
package/dist/babel/index.js
CHANGED
|
@@ -71,7 +71,7 @@ module.exports = function plugin({ types }, { tsConfigPath = (0, utils_1.findTsC
|
|
|
71
71
|
};
|
|
72
72
|
const shouldPathBeAnalyzed = (path) => {
|
|
73
73
|
const aliasRegexIdx = aliasesRegexes.findIndex((aliasRegex) => aliasRegex.test(path));
|
|
74
|
-
const isRelative = path.startsWith('
|
|
74
|
+
const isRelative = path.startsWith('.');
|
|
75
75
|
const isAbsolute = path.startsWith('/');
|
|
76
76
|
const isBaseUrlPath = baseUrlDirs.some((dir) => path.startsWith(dir));
|
|
77
77
|
return aliasRegexIdx > -1 || isRelative || isAbsolute || isBaseUrlPath;
|
|
@@ -233,7 +233,7 @@ module.exports = function plugin({ types }, { tsConfigPath = (0, utils_1.findTsC
|
|
|
233
233
|
};
|
|
234
234
|
const getImportKind = (sourcePath) => {
|
|
235
235
|
const aliasRegexIdx = aliasesRegexes.findIndex((aliasRegex) => aliasRegex.test(sourcePath));
|
|
236
|
-
const isRelative = sourcePath.startsWith('
|
|
236
|
+
const isRelative = sourcePath.startsWith('.');
|
|
237
237
|
const isBaseUrlPath = baseUrlDirs.some((dir) => sourcePath.startsWith(dir));
|
|
238
238
|
if (aliasRegexIdx > -1) {
|
|
239
239
|
return 'aliased';
|