Skip to content

@rnx-kit/metro-plugin-typescript slows down metro bundling #3617

Open
@rurikoaraki

Description

@rurikoaraki

What happened?

We have a project that uses @rnx-kit/metro-plugin-typescript as a metro plugin when bundling code. However, it seems that it is slowing down the bundling process to the point where it makes it difficult to have a productive inner loop, especially since it slows the initial load of the bundle when trying to use fast refresh.

Affected Package

@rnx-kit/metro-plugin-typescript

Version

0.4.4

Which platforms are you seeing this issue on?

  • Android
  • iOS
  • macOS
  • Windows

System Information

info Fetching system and libraries information...
System:
  OS: Windows 11 10.0.26100
  CPU: "(32) x64 AMD Ryzen Threadripper PRO 3955WX 16-Cores     "
  Memory: 59.27 GB / 127.86 GB
Binaries:
  Node:
    version: 22.14.0
  Yarn:
    version: |-
      1.23.29
  npm:
    version: 10.9.2
  Watchman:
    version: 20241229.093401.0
    path: C:\ProgramData\chocolatey\bin\watchman.EXE
SDKs:
  Android SDK: Not Found
  Windows SDK:
    AllowDevelopmentWithoutDevLicense: Enabled
    AllowAllTrustedApps: Enabled
    Versions:
      - 10.0.17763.0
      - 10.0.18362.0
      - 10.0.19041.0
      - 10.0.22000.0
      - 10.0.22621.0
IDEs:
  Android Studio: Version     2020.3.0.0 AI-203.7717.56.2031.7621141
  Visual Studio:
    - 17.13.35931.197 (Visual Studio Enterprise 2022)
    - 16.11.35931.194 (Visual Studio Enterprise 2019)
Languages:
  Java:
    version: 11.0.16.1
    path: "C:\\Program Files\\Microsoft\\jdk-11.0.16.101-hotspot\\bin\\javac.exe\r

      C:\\Program Files\\Eclipse
      Foundation\\jdk-8.0.302.8-hotspot\\bin\\javac.exe"
  Ruby: Not Found
npmPackages:
  "@react-native-community/cli": Not Found
  react: Not Found
  react-native:
    installed: 0.73.6
    wanted: ^0.73.0
  react-native-windows: Not Found
npmGlobalPackages:
  "*react-native*": Not Found
Android:
  hermesEnabled: Not found
  newArchEnabled: Not found
iOS:
  hermesEnabled: Not found
  newArchEnabled: Not found

Steps to Reproduce

Please reach out to me for a branch name

Code of Conduct

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingfeature: metroThis is related to Metro

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions