Skip to content

[Feature Request] Reduce bundle size #101

Description

@g3n35i5

Is your feature request related to a problem? Please describe.

I've added @orama/react-components to my application in vorausrobotik/vdoc#123 which increased the bundlesize by 335% to 2.01MB.
The rollup visualizer shows that this size change is indeed caused by the orama UI components:

Image

The files index.mjs.map and orama-button... are the main reasons for this.

    1.6 MiB [###################################]  index.mjs.map                                                                                                                                                                                          
    1.4 MiB [#############################      ]  orama-button_25.entry-72GPBMN4.mjs.map
  604.0 KiB [############                       ]  index.js.map
  564.0 KiB [############                       ]  index.js
  520.0 KiB [###########                        ]  index.mjs
  496.0 KiB [##########                         ]  orama-button_25.entry-6G24XSGB.js
  452.0 KiB [#########                          ]  orama-button_25.entry-72GPBMN4.mjs
  380.0 KiB [########                           ]  orama-button_25.entry-6G24XSGB.js.map
  228.0 KiB [####                               ]  chunk-BFEPFBIT.mjs.map
  176.0 KiB [###                                ]  chunk-UMO3AMPV.js.map
   52.0 KiB [#                                  ]  chunk-UMO3AMPV.js
   44.0 KiB [                                   ]  chunk-BFEPFBIT.mjs
    8.0 KiB [                                   ]  orama-logo-icon.entry-CLOUERMG.js.map
    8.0 KiB [                                   ]  orama-ui.js.map
    8.0 KiB [                                   ]  orama-ui.mjs.map
    8.0 KiB [                                   ]  orama-ui.js
    8.0 KiB [                                   ]  orama-ui.mjs
    8.0 KiB [                                   ]  orama-logo-icon.entry-UXLQVFS7.mjs.map
    8.0 KiB [                                   ]  orama-logo-icon.entry-CLOUERMG.js
    4.0 KiB [                                   ]  orama-logo-icon.entry-UXLQVFS7.mjs
    4.0 KiB [                                   ]  index.d.ts
    4.0 KiB [                                   ]  index.d.mts
    4.0 KiB [                                   ]  chunk-L36NZZO2.js.map
    4.0 KiB [                                   ]  chunk-WX24D4PO.mjs.map
    4.0 KiB [                                   ]  chunk-QOQFA54G.js.map
    4.0 KiB [                                   ]  chunk-L36NZZO2.js
    4.0 KiB [                                   ]  chunk-WX24D4PO.mjs
    4.0 KiB [                                   ]  chunk-QOQFA54G.js
    4.0 KiB [                                   ]  chunk-RPAKKUMI.mjs
    4.0 KiB [                                   ]  chunk-RPAKKUMI.mjs.map
    4.0 KiB [                                   ]  orama-ui.d.ts
    4.0 KiB [                                   ]  orama-ui.d.mts

Describe the solution you'd like

Decrease the bundle size.

Describe alternatives you've considered

Additional context

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions