You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Right now we add all the methods in default export so that we can access the method directly from Brahmos namespace. like Brahmos.Component, Brahmos.createElement etc.
This was done so the aliasing of React to Brahmos can be done easily. But it necessarily increases the bundle size.
Though this might be required on umd bundle, but for es modules, we are not able to utilize proper tree shaking.
Plus this issue can be solved on compiler level easily on below code,
Proposal
Right now we add all the methods in default export so that we can access the method directly from Brahmos namespace. like
Brahmos.Component
,Brahmos.createElement
etc.This was done so the aliasing of React to Brahmos can be done easily. But it necessarily increases the bundle size.
Though this might be required on umd bundle, but for es modules, we are not able to utilize proper tree shaking.
Plus this issue can be solved on compiler level easily on below code,
we can easily find
Brahmos.Component
usage and can optimize the above syntax toComplexity
The text was updated successfully, but these errors were encountered: