@rayburst/cli 0.3.5 → 0.3.6
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.
|
@@ -258,8 +258,18 @@ function traceConfigProperty(configObject, propertyName) {
|
|
|
258
258
|
if (isVariableDeclaration(declaration)) {
|
|
259
259
|
return traceVariableDataFlow(declaration);
|
|
260
260
|
}
|
|
261
|
-
|
|
262
|
-
|
|
261
|
+
const parent = declaration.getParent();
|
|
262
|
+
if (isImportDeclaration(parent)) {
|
|
263
|
+
return parent;
|
|
264
|
+
}
|
|
265
|
+
if (parent && parent.getKind() === 283) {
|
|
266
|
+
const grandParent = parent.getParent();
|
|
267
|
+
if (grandParent) {
|
|
268
|
+
const importDecl = grandParent.getParent();
|
|
269
|
+
if (importDecl && isImportDeclaration(importDecl)) {
|
|
270
|
+
return importDecl;
|
|
271
|
+
}
|
|
272
|
+
}
|
|
263
273
|
}
|
|
264
274
|
return declaration;
|
|
265
275
|
}
|
package/dist/index.js
CHANGED
package/dist/vite-plugin.js
CHANGED