Skip to content

Conversation

@HALQME
Copy link
Owner

@HALQME HALQME commented Dec 24, 2025

This pull request focuses on refactoring imports across the codebase to consistently use relative paths instead of alias-based imports (such as @/). It also improves the structure and clarity of module exports, particularly in the components, renderer, and runtime modules. Additionally, some type exports are reorganized to streamline the public API and reduce unnecessary exposure of internal types.

Key changes include:

Import Path Refactoring

  • Replaced all alias-based imports (e.g., @/view/types/elements) with relative paths throughout the codebase for consistency and better compatibility with tooling. This affects files in components, layout, renderer, and runtime modules. [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11] [12] [13] [14]

Module Export Improvements

  • Refactored src/components/index.ts to export only selected functions and types, rather than using wildcard exports, improving tree-shaking and clarity of the public API.
  • Updated src/renderer/index.ts to use named exports for each renderer utility, replacing wildcard exports and consolidating type exports for better control over the public interface.
  • Changed src/runtime/index.ts to use explicit named exports for main runtime utilities, instead of wildcard exports.

Type and API Surface Adjustments

  • Moved interfaces such as LayoutEngine, LayoutContainerSize, and LayoutOptions from src/layout/index.ts to a dedicated src/layout/types.ts file, cleaning up the layout module's API surface. [1] [2] [3]
  • Removed inline type exports from src/reactivity/index.ts to reduce unnecessary exposure of internal types. [1] [2]

Entry Point and Barrel File Updates

  • Updated src/index.ts to re-export from the new module entry points and to use the updated, more focused exports from components and runtime. [1] [2]

These changes collectively improve code maintainability, module encapsulation, and compatibility with various build tools.

@github-actions
Copy link

🚀 Performance Benchmark Result

          Performance Limits Report 5 runs
====================================================
| FPS Target | Avg Nodes |  Min  |  Max  | Std Dev |
|------------|-----------|-------|-------|---------|
| 120 FPS    | 1880      | 1600  | 2000  | ±147    |
|  60 FPS    | 3500      | 3400  | 3600  | ±63     |
|  30 FPS    | 6440      | 6300  | 6600  | ±120    |
|  15 FPS    | 12080     | 11900 | 12300 | ±147    |
====================================================
Run Details Triggered by commit: 8780286

@HALQME HALQME merged commit 660d529 into main Dec 24, 2025
3 checks passed
@HALQME HALQME deleted the fix/import-export branch December 24, 2025 03:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants