mirror of
https://github.com/terribleplan/next.js.git
synced 2024-01-19 02:48:18 +00:00
e6ff476198
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 ``` |
||
---|---|---|
.. | ||
build | ||
lib | ||
config.js | ||
document.js | ||
export.js | ||
hot-reloader.js | ||
index.js | ||
next.js | ||
on-demand-entry-handler.js | ||
render.js | ||
require.js | ||
router.js | ||
utils.js |