Blog

Technology-Agnostic

Architectural Playground

Juun

Playground
  1. Timeline
  2. 7
0072025년 9월
PERFORMANCE

Resium Removal: Native Cesium

Cesium 의 React 버전인 Resium 라이브러리를 걷어내고, Cesium 뷰어를 관리할 컴포넌트를 직접 구현해 1MB 의 번들 크기 감소

CesiumReactbundleoptimizationperformance

Situation

Using Resium (React wrapper for Cesium) added 1MB to the bundle. Only using Resium's basic Viewer component, others were redundant. Additionally, Resium's declarative abstractions are not appropriate for dynamic scenes.

Task

  • Remove Resium dependency

Action

Implemented native component

  • Created custom viewer component with forwardRef
  • Direct Cesium API usage
  • Maintained React-friendly interface

Result

Reduced bundle size by 1 MB (significant for FCP) and gained full control over Cesium APIs.

Created
2025년 9월 19일