Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use a more appropriate regexp for removing hash from a filename (#4510)
Fixes one of the problems described in #4433. The old regexp was removing everything after a hyphen, so with a chunk name like so: ``` chunks/path-to-a-file-[hash].js ``` the saved chunk name was ``` chunks/path ``` This caused problems, because webpack by default changes `/` to `-` in chunk names generated e.g. by ``import(`foo/${bar}`)``. After this change the chunk name will be ``` chunks/path-to-a-file ```
- Loading branch information