Skip to content

fix(fuselage)!: Bundling size - #1754

Merged
tassoevan merged 6 commits into
mainfrom
fix/fuselage-build
Sep 18, 2025
Merged

fix(fuselage)!: Bundling size#1754
tassoevan merged 6 commits into
mainfrom
fix/fuselage-build

Conversation

@tassoevan

@tassoevan tassoevan commented Sep 5, 2025

Copy link
Copy Markdown
Member

Proposed changes (including videos or screenshots)

It reduces the bundle size of @rocket.chat/fuselage by externalizing more dependencies and increasing the ECMAScript version.

Issue(s)

Further comments

@changeset-bot

changeset-bot Bot commented Sep 5, 2025

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 2ff8cf4

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@rocket.chat/fuselage Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@tassoevan
tassoevan requested review from a team and Copilot September 5, 2025 20:15

Copilot AI left a comment

Copy link
Copy Markdown

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 reduces the bundle size of @rocket.chat/fuselage by externalizing dependencies and modernizing the build configuration.

  • Replaced hardcoded external dependencies with dynamic externalization of all package dependencies
  • Updated TypeScript compilation target from ES5 to ES2024 and removed ES5 compatibility checks
  • Converted import statements to use TypeScript's type keyword for type-only imports

Reviewed Changes

Copilot reviewed 16 out of 18 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
packages/fuselage/webpack.config.js Dynamically externalizes all dependencies and removes hardcoded externals list
packages/fuselage/tsconfig.json Updates TypeScript target to ES2024 and adds modern module resolution settings
packages/fuselage/package.json Removes ES5 compatibility checks and simplifies build scripts
packages/fuselage/src/**/*.ts(x) Converts imports to type-only imports using type keyword
package.json Updates Node.js and Yarn versions
.yarnrc.yml Updates Yarn version to 4.9.4
.github/workflows/*.yml Updates CI/CD workflows to use newer Node.js version
.changeset/sour-monkeys-change.md Adds changeset documentation for the bundle size improvements

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Comment thread packages/fuselage/tsconfig.json
@tassoevan tassoevan added 📦 fuselage minor Increment the minor version when merged performance Improve performance of an existing feature labels Sep 5, 2025
@tassoevan
tassoevan marked this pull request as ready for review September 5, 2025 20:16
Comment thread packages/fuselage/src/components/Skeleton/Skeleton.tsx Outdated
dougfabris
dougfabris previously approved these changes Sep 17, 2025

@dougfabris dougfabris left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

es-check

@dougfabris

Copy link
Copy Markdown
Member

I think this is more a feat than a fix

@tassoevan
tassoevan merged commit 210f7e4 into main Sep 18, 2025
6 checks passed
@tassoevan
tassoevan deleted the fix/fuselage-build branch September 18, 2025 13:57
@github-actions github-actions Bot mentioned this pull request Sep 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

📦 fuselage minor Increment the minor version when merged performance Improve performance of an existing feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants