Skip to content

Switch to ESM only for v10? #3590

@sidharthv96

Description

@sidharthv96

The current build setup is complicated (and slow).

Pros:

  • Simpler builds
  • Faster builds with esbuild
  • Tree shaking?

Cons:

  • Different import script in browsers
  • Loses support for legacy browsers? (@knsv This might be an issue with using module: ES2022 in lazy load also)
  • Downstream projects might have to handle small migration. But not sure if anything will be broken as require has already been broken due to D3 dependency as @aloisklink mentioned here

Related:

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions