Skip to content

Commit 501c77b

Browse files
fix: unfoldIncludes should handle errors without path field (#472)
1 parent 7fafa30 commit 501c77b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/transform/plugins/includes/index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ function unfoldIncludes(state: StateCore, path: string, options: Options) {
7777
}
7878
} catch (e) {
7979
// @ts-ignore for some reason typescript fails here
80-
const errPath = e.path.replace(root, '');
80+
const errPath = e.path?.replace(root, '');
8181

8282
if (notFoundCb) {
8383
notFoundCb(errPath);

0 commit comments

Comments
 (0)