Skip to content

Commit 734a1bb

Browse files
test: shorten the chunk-url helper comment to two lines
1 parent fecdf55 commit 734a1bb

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

‎test/configCases/contenthash/hash-placeholders/test.config.js‎

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -140,9 +140,8 @@ module.exports = {
140140
// reachable filename it produces actually exists on disk.
141141
const bundleContent = fs.readFileSync(path.join(dir, bundle), "utf8");
142142

143-
// Locate a chunk-URL helper for a property (`u` / `k`) and extension.
144-
// Anchored on `chunkId` and the `".<ext>"` tail, so a concise arrow, a
145-
// `return` block and the `function` form all match. `<expr>` is one of:
143+
// Locate a chunk-URL helper (`u` / `k`), anchored on `chunkId` and the
144+
// `".<ext>"` tail so arrow, `return` and `function` forms all match. `<expr>`:
146145
// a) per-chunk map: `{"async_js":"<h>","async_css":"<h>"}[chunkId]`
147146
// b) inlined literal: `"<h>"` (when only one chunk applies)
148147
// c) compilation-hash helper: `__webpack_require__.h()`

0 commit comments

Comments
 (0)