Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Upgrade enhanced-resolve to enable subpath exports in jest config
A newer version of `enhanced-resolve` supports [node subpath exports](https://nodejs.org/api/packages.html#subpath-exports) so in this PR I've upgraded to the latest release in fusion-cli. I noticed that the jest resolver is copied into `jest-resolver-fusion` package with a different `enhanced-resolve` version. Should that be updated as well? Most of this upgrade was straightforward besides handing the `es5-ext` package paths. Enhanced-resolve will escape `#` characters in file paths. I did some digging in webpack and found that they are using the async resolve method that will include the unescaped path, but in the sync variant it will only output escaped. Before the unescaped path was available, webpack would regex replace the `\0#` substrings so that's what I've implemented here. I tested this change in web-code by resolving `fusion-cli/enhanced-resolve` to `5.10.0` and patching `fusion-cli` with the changes included in this PR. Phab revision: https://code.uberinternal.com/D7832723 Passing CI build: https://buildkite.com/uber/web-code/builds/248921
- Loading branch information