Skip to content

"Buffer" polyfill bloats plugin bundles #107280

@Dosant

Description

@Dosant

When Buffer is used in client or common code, webpack bundles a costly ~30kb polyfill. Looks like it does it per each plugin where Buffer is used. In some cases, it is possible to avoid using it in clientside code altogether, but probably we at least could share the Buffer polyfill across plugins.

Screen Shot 2021-07-30 at 13 07 17

Some clientside usages I found:

Metadata

Metadata

Assignees

No one assigned

    Labels

    Feature:MapsTeam: SecuritySolutionSecurity Solutions Team working on SIEM, Endpoint, Timeline, Resolver, etc.Team:CorePlatform Core services: plugins, logging, config, saved objects, http, ES client, i18n, etc t//Team:EnterpriseSearchTeam:FleetTeam label for Observability Data Collection Fleet teamTeam:PresentationPresentation Team for Dashboard, Input Controls, and Canvas t//Team:Uptime - DEPRECATEDSynthetics & RUM sub-team of Application ObservabilityenhancementNew value added to drive a business resultimpact:lowAddressing this issue will have a low level of impact on the quality/strength of our product.loe:smallSmall Level of Effortperformance

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions