Skip to content

Commit 7fc5aa0

Browse files
committed
fix(plugin): resolve type error
1 parent c43a5df commit 7fc5aa0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/analytics/src/plugin/with-simple-analytics.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ export function withSimpleAnalytics(
102102

103103
return {
104104
beforeFiles: existingRewrites.beforeFiles,
105-
afterFiles: existingRewrites.afterFiles.concat(rewrites),
105+
afterFiles: existingRewrites.afterFiles?.concat(rewrites),
106106
fallback: existingRewrites.fallback,
107107
};
108108
},

0 commit comments

Comments
 (0)