vercel / webpack-asset-relocator-loader

Used in ncc while emitting and relocating any asset references
https://npmjs.com/@vercel/webpack-asset-relocator-loader
MIT License
101 stars 33 forks source link

Consider support for wildcard backtracking #64

Open guybedford opened 5 years ago

guybedford commented 5 years ago

Currently we filter wildcards to ensure they cannot bracktrack. There are cases where this can be useful though, so if it can be supported we should.

lucleray commented 5 years ago

Here's a repro for this:

https://github.com/lucleray/ncc-backtracking-assets

Without backtracking (../) in the path, it works fine.

guybedford commented 5 years ago

A variation of this could be to modify the filter to support backtracking into sibling folders specifically.