Skip to content

[standards] Migrate vendored JS from Haste to path-based imports #24769

@ide

Description

@ide

The Set & Map polyfills and EventEmitter under Libraries/vendor use Haste. We can easily rewrite the imports in the vendored code, but we can make things easier for the next person who re-syncs the vendored code from the source by rewriting the imports in the pre-vendored code. (I could be mistaken about this, since Libraries/vendor/document/selection/DocumentSelectionState.js uses path-based imports.)

There are two parts to this issue:

  1. Deciding whether to update the pre- or post-vendored code. We will update the post-vendored code.
  2. Rewriting the imports inside of Facebook's source of truth (pre-vendored) or submitting a PR to rewrite only the code on GitHub (post-vendored).

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