next.js
7f20cbd6 - Turbopack: symlinks and parent globs in `outputFileTracingIncludes` (#82528)

Commit
143 days ago
Turbopack: symlinks and parent globs in `outputFileTracingIncludes` (#82528) 1. Don't resolve symlinks in `outputFileTracingIncludes`. Otherwise if you specify `node_modules/foo/*` in there, it will resolve to `node_modules/.pnpm/foo/*` and `require("foo")` won't work anymore because there no symlink in `node_modules/foo` anymore. This is also what happens with Webpack 2. Align `read_glob` with `read_dir` in that the hashmap keys only contain the path segment, and not the full path. 3. Support globing parents of the start folder: if the glob can match `..`, then also try to match `directory.parent_folder().read_glob(glob)` Closes PACK-5219
Author
Parents
Loading