Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: add hidden comment at start instead of end to avoid truncation #72

Merged
merged 5 commits into from
Aug 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions dist/index.mjs

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion src/compare.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,8 @@ This analysis was generated by [esbuild-bundle-analyzer](https://github.com/exoe

// we add this tag so that our action can be able to easily and
// consistently find the right comment to edit as more commits are pushed.
output += `<!-- __ESBUILD_BUNDLE_${input.name} -->`;
output = `<!-- __ESBUILD_BUNDLE_${input.name} -->
${output}`;

writeComment(input, output);
}
Expand Down