next.js
bd802d13 - [turbopack] Handle relative paths before matching in node file traces (#82539)

Commit
147 days ago
[turbopack] Handle relative paths before matching in node file traces (#82539) # Fix glob handling for NFT JSON asset includes and excludes The current webpack version uses the https://www.npmjs.com/package/glob package to match and notably only handles `../` when it appears in a prefix position ([ref](https://www.npmjs.com/package/glob#:~:text=..%20path%20portions%20are%20not%20handled%20unless%20they%20appear%20at%20the%20start%20of%20the%20pattern)), so we do the exact same thing here. This allows our read_glob traversal to only consider traversing 'down' from the root since we can preprocess the patterns to not include `../` or `./` Part-Of PACK-5219
Author
Parents
Loading