Skip to content

Conversation

@antongolub
Copy link
Collaborator

  • Tests pass
  • Appropriate changes to README are included in PR

@antongolub antongolub added the refactoring Internal code improvements label Aug 10, 2025
@antongolub antongolub requested a review from Copilot August 10, 2025 17:48
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR refactors shell configuration functions to reduce code duplication by introducing a shared setShell helper function. The refactoring consolidates the logic for setting shell properties and reduces the overall bundle size.

Key changes:

  • Replaced three separate shell configuration functions with a shared setShell helper
  • Converted function declarations to arrow function expressions
  • Reduced bundle size limits reflecting the code optimization

Reviewed Changes

Copilot reviewed 3 out of 4 changed files in this pull request and generated no comments.

File Description
src/core.ts Refactored shell setter functions to use shared setShell helper
build/core.cjs Generated build output reflecting the TypeScript changes
.size-limit.json Updated size limits to reflect reduced bundle size

@antongolub antongolub merged commit dab607c into google:main Aug 10, 2025
29 checks passed
@antongolub antongolub deleted the refactor-shell-set branch August 10, 2025 18:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

refactoring Internal code improvements

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant