Skip to content

Commit 7224f3f

Browse files
committed
add a comment and fix redundant from review flydelabs#120
1 parent 69d1992 commit 7224f3f

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

resolver/src/resolver/resolve-dependencies/macro-node-to-definition.ts

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,12 @@ export function macroNodeToDefinition<T>(
2121
editorComponentBundleContent: "",
2222
} as MacroEditorConfigCustomDefinition,
2323
};
24-
const BundlePathPlusOne = join(
25-
"..",
26-
macro.editorConfig.editorComponentBundlePath,
27-
);
2824
let editorComponentPath = join(
2925
importPath,
30-
BundlePathPlusOne,
26+
"..",
27+
macro.editorConfig.editorComponentBundlePath,
3128
);
29+
// fallback for backwards compatibility (see issue #120)
3230
if (!existsSync(editorComponentPath)) {
3331
editorComponentPath = join(
3432
importPath,

0 commit comments

Comments
 (0)