turborepo
489c730a - Split the ES chunk module into smaller, more focused modules (#3974)

Commit
2 years ago
Split the ES chunk module into smaller, more focused modules (#3974) This diff splits the `turbopack-ecmascript/src/chunk/mod.rs` and `turbopack-ecmascript/src/loader.rs` modules into smaller modules, usually centered around one type. The goal of this PR is to make the ecmascript crate easier to navigate and review, as well as reduce the amount of merge conflicts that can arise from modifying imports in two separate diffs within the same module. This PR also changes the visibility of most modules within the crate to be `pub(crate)` so they're available to the generated `register` function, but not accidentally leaked outside of the crate. The same is done on a per-type basis with `pub(crate)` or `pub(super)`.
Author
Parents
Loading