-
Notifications
You must be signed in to change notification settings - Fork 215
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(bundle-source): Isolate transform (#2685)
This isolates a transformSource function so that it can be applied for the Endo Base-64 Zip bundle format in a subsequent change. The change reveals that the transformSource function is necessarilly async--it uses the Mozilla SourceMapConsumer, which in turn relies on a pool of workers for performance. This in turn suggests the next phase of work will be adding support for asynchronous transforms to the Endo archiver in the Compartment Mapper. Refactoring revealed an opportunity to parallelize transforms, which might better leverage the source map worker pool, and also revealed a resource leak since we did not previously release source map workers.
- Loading branch information
Showing
1 changed file
with
115 additions
and
88 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters