Skip to content

When using @hugeicons-pro packages, the Babel transform take a long time while bundling with MetroΒ #1

@kevinriemens

Description

@kevinriemens

I've written a small logger in Babel that logs the time:

transform[stdout]: πŸ”„ TRANSFORMING: /***/***/***/node_modules/@hugeicons/react-native/dist/cjs/index.js
transform[stdout]: βœ… TRANSFORMED: /***/***/***/node_modules/@hugeicons/react-native/dist/cjs/index.js (2ms)
transform[stdout]: πŸ”„ TRANSFORMING: /***/***/***/node_modules/@hugeicons-pro/core-stroke-standard/dist/cjs/index.js
transform[stdout]: πŸ”„ TRANSFORMING: /***/***/***/node_modules/@hugeicons-pro/core-solid-standard/dist/cjs/index.js
transform[stdout]: βœ… TRANSFORMED: /***/***/***/node_modules/@hugeicons-pro/core-stroke-standard/dist/cjs/index.js (55271ms)
transform[stdout]: βœ… TRANSFORMED: /***/***/***/node_modules/@hugeicons-pro/core-solid-standard/dist/cjs/index.js (56753ms)
 BUNDLE  src/main.tsx β–“β–“β–“β–“β–“β–“β–“β–“β–“β–“β–“β–“β–“β–“β–“β–“ 100.0% (2740/2740)

Throughout the React Native stack the icons are imported as Named Imports.

TSConfig is set to:

    "module": "ESNext",
    "moduleResolution": "bundler"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions