From 29f0b91375a3a97bc1b10c7f4e37728862964d92 Mon Sep 17 00:00:00 2001 From: Alexander Akait <4567934+alexander-akait@users.noreply.github.com> Date: Tue, 16 Apr 2024 19:19:10 +0300 Subject: [PATCH] test: fix (#1096) --- ...67f76c798a7ae1ccf722.css => 0.f572fe696dd05e7ca379.css} | 0 .../{67f76c798a7ae1ccf722.css => f572fe696dd05e7ca379.css} | 0 .../chunkFilename-fullhash/expected/webpack-5/main.js | 6 +++++- test/cases/hmr-locals/expected/main.js | 4 ++++ types/utils.d.ts | 7 +++++++ 5 files changed, 16 insertions(+), 1 deletion(-) rename test/cases/chunkFilename-fullhash/expected/webpack-5/{0.67f76c798a7ae1ccf722.css => 0.f572fe696dd05e7ca379.css} (100%) rename test/cases/chunkFilename-fullhash/expected/webpack-5/{67f76c798a7ae1ccf722.css => f572fe696dd05e7ca379.css} (100%) diff --git a/test/cases/chunkFilename-fullhash/expected/webpack-5/0.67f76c798a7ae1ccf722.css b/test/cases/chunkFilename-fullhash/expected/webpack-5/0.f572fe696dd05e7ca379.css similarity index 100% rename from test/cases/chunkFilename-fullhash/expected/webpack-5/0.67f76c798a7ae1ccf722.css rename to test/cases/chunkFilename-fullhash/expected/webpack-5/0.f572fe696dd05e7ca379.css diff --git a/test/cases/chunkFilename-fullhash/expected/webpack-5/67f76c798a7ae1ccf722.css b/test/cases/chunkFilename-fullhash/expected/webpack-5/f572fe696dd05e7ca379.css similarity index 100% rename from test/cases/chunkFilename-fullhash/expected/webpack-5/67f76c798a7ae1ccf722.css rename to test/cases/chunkFilename-fullhash/expected/webpack-5/f572fe696dd05e7ca379.css diff --git a/test/cases/chunkFilename-fullhash/expected/webpack-5/main.js b/test/cases/chunkFilename-fullhash/expected/webpack-5/main.js index adacf54c..c66d5e1f 100644 --- a/test/cases/chunkFilename-fullhash/expected/webpack-5/main.js +++ b/test/cases/chunkFilename-fullhash/expected/webpack-5/main.js @@ -73,7 +73,7 @@ __webpack_require__.r(__webpack_exports__); /******/ /******/ /* webpack/runtime/getFullHash */ /******/ (() => { -/******/ __webpack_require__.h = () => ("67f76c798a7ae1ccf722") +/******/ __webpack_require__.h = () => ("f572fe696dd05e7ca379") /******/ })(); /******/ /******/ /* webpack/runtime/global */ @@ -253,6 +253,10 @@ __webpack_require__.r(__webpack_exports__); /******/ }; /******/ /******/ // no hmr +/******/ +/******/ // no prefetching +/******/ +/******/ // no preloaded /******/ })(); /******/ /******/ /* webpack/runtime/jsonp chunk loading */ diff --git a/test/cases/hmr-locals/expected/main.js b/test/cases/hmr-locals/expected/main.js index 69b2e238..1c63cc02 100644 --- a/test/cases/hmr-locals/expected/main.js +++ b/test/cases/hmr-locals/expected/main.js @@ -1059,6 +1059,10 @@ __webpack_require__.r(__webpack_exports__); /******/ })); /******/ }); /******/ } +/******/ +/******/ // no prefetching +/******/ +/******/ // no preloaded /******/ })(); /******/ /******/ /* webpack/runtime/jsonp chunk loading */ diff --git a/types/utils.d.ts b/types/utils.d.ts index 80cd42a9..363a2e07 100644 --- a/types/utils.d.ts +++ b/types/utils.d.ts @@ -65,3 +65,10 @@ export function getUndoPath( outputPath: string, enforceRelative: boolean ): string; +/** + * @param {Record} map value map + * @returns {boolean|(function(string): string)} true/false, when unconditionally true/false, or a template function to determine the value at runtime + */ +export function compileBooleanMatcher( + map: Record +): boolean | ((arg0: string) => string);