JG Tromp
7aa943c14b
fix(javascript): resolve Vite build-output preload dependencies ( #7745 )
...
* fix(javascript): resolve Vite build-output preload dependencies
With an absolute base, Vite writes __vite__mapDeps entries relative to the
build output directory (for example assets/chunk.js), and its preload helper
prefixes the configured base at runtime. REA emitted these entries as
dynamic-import module specifiers, so a scheme-less path without a leading
dot resolved as a bare package and every entry was reported as an
unresolved "external" module, even when the build output directory was
selected.
The static analyzer now marks such entries with a vite-output: specifier,
as Webpack chunk loads are marked with chunk:. Entries starting with ./,
../ or /, and scheme-qualified entries, keep their previous handling. The
graph resolves a marked entry as a URL path under each ancestor directory
of the importing file; exactly one ancestor holding the file establishes
the build output directory. Otherwise the entry is not-found (or
unavailable when several ancestors match) with a limitation that names
the build output directory.
On a synthetic 7-file Vite build, the 12 preload entries that were
"external" now resolve when the build output directory is selected, and
are not-found with that guidance when only assets/ is selected.
* fix(javascript): keep unanalyzed Vite output candidates
resolveViteOutputDependency considered only resolved ancestors. A file
that exists under an ancestor but was not analyzed (for example
dist/assets/lazy.css for the entry assets/lazy.css) resolves there as
unavailable, and that result was replaced by the root's not-found with a
limitation saying that no ancestor holds the file.
Keep resolved and unavailable ancestor candidates together. One candidate
is returned with its own path and limitations; several are reported as
unavailable with every candidate path and limitation. Only when no
ancestor can hold the file does the root's not-found result stand.
2026-10-28 19:46:45 +08:00
..
2026-10-27 09:16:02 +08:00
2026-10-27 13:30:24 +08:00
2026-10-28 19:46:45 +08:00
2026-10-25 04:09:11 +08:00
2026-10-25 09:45:26 +08:00
2026-10-24 03:11:07 +08:00
2026-10-13 16:04:44 +08:00
2026-10-27 07:17:10 +08:00
2026-10-27 12:23:56 +08:00
2026-10-27 09:16:02 +08:00
2026-10-21 21:19:33 -07:00
2026-10-25 07:31:42 +08:00
2026-10-24 16:02:59 +08:00
2026-10-21 14:09:29 +08:00
2026-10-27 09:45:10 +08:00
2026-10-25 07:57:07 +08:00
2026-10-27 06:06:27 +08:00
2026-10-25 07:57:07 +08:00
2026-10-25 07:57:07 +08:00
2026-10-23 22:54:28 +08:00
2026-10-27 03:23:50 +08:00
2026-10-12 04:53:27 +08:00
2026-10-27 09:45:10 +08:00
2026-10-24 08:00:55 +08:00
2026-10-25 07:31:42 +08:00
2026-10-23 22:54:28 +08:00
2026-10-27 09:16:02 +08:00
2026-10-24 03:11:07 +08:00
2026-10-25 07:31:42 +08:00
2026-10-16 02:47:04 +08:00
2026-10-27 09:16:02 +08:00
2026-10-27 09:05:18 +08:00
2026-10-24 08:00:55 +08:00
2026-10-27 03:29:05 +08:00
2026-10-19 14:32:48 +08:00
2026-10-27 09:16:02 +08:00
2026-10-19 14:32:48 +08:00
2026-10-24 04:06:57 +08:00
2026-10-28 12:35:55 +08:00
2026-10-24 01:49:13 +08:00
2026-10-25 07:31:42 +08:00
2026-10-25 07:31:42 +08:00
2026-10-25 08:29:20 +08:00
2026-10-25 07:31:42 +08:00
2026-10-27 15:13:47 +08:00
2026-10-25 07:31:42 +08:00
2026-10-21 05:28:08 +08:00
2026-10-21 03:48:14 +08:00
2026-10-28 09:12:30 +00:00
2026-10-27 09:55:24 +08:00
2026-10-27 09:55:24 +08:00
2026-10-27 09:55:24 +08:00
2026-10-13 17:46:04 +08:00
2026-10-14 06:07:08 +08:00
2026-10-25 07:31:42 +08:00
2026-10-21 03:29:31 +08:00
2026-10-27 21:24:30 +08:00
2026-10-14 06:07:08 +08:00
2026-10-24 08:22:14 +08:00
2026-10-27 09:55:24 +08:00
2026-10-21 14:58:17 +08:00
2026-10-25 09:49:26 +08:00
2026-10-27 21:26:38 +08:00
2026-10-23 00:50:47 +08:00
2026-10-23 12:27:24 +00:00
2026-10-14 06:07:08 +08:00
2026-10-28 11:34:28 +00:00
2026-10-26 22:22:27 +08:00
2026-10-27 21:24:30 +08:00
2026-10-28 11:34:28 +00:00
2026-10-28 11:34:28 +00:00
2026-10-28 11:34:28 +00:00
2026-10-27 21:24:30 +08:00
2026-10-27 21:24:30 +08:00
2026-10-24 12:11:54 +08:00
2026-10-27 21:24:30 +08:00
2026-10-28 11:34:28 +00:00
2026-10-25 05:10:29 +08:00
2026-10-21 06:14:03 +08:00
2026-10-28 11:34:28 +00:00
2026-10-27 09:16:02 +08:00
2026-10-24 04:32:11 +08:00
2026-10-26 15:49:58 +08:00
2026-10-27 13:46:36 +08:00
2026-10-27 09:16:02 +08:00
2026-10-27 12:37:38 +08:00
2026-10-23 21:28:10 +08:00
2026-10-11 05:33:05 +08:00
2026-10-12 04:45:17 +08:00
2026-10-14 12:17:54 +08:00
2026-10-27 07:35:13 +08:00
2026-10-27 08:11:18 +08:00
2026-10-14 12:21:26 +08:00
2026-10-25 07:31:42 +08:00
2026-10-28 11:34:28 +00:00
2026-10-28 11:34:28 +00:00
2026-10-26 16:02:14 +08:00
2026-10-24 05:08:24 +08:00
2026-10-22 15:02:23 +08:00
2026-10-23 19:18:47 +08:00
2026-10-28 03:41:26 +08:00
2026-10-21 04:57:08 -07:00
2026-10-25 07:31:42 +08:00
2026-10-27 09:16:02 +08:00
2026-10-24 02:34:35 +08:00
2026-10-28 11:34:28 +00:00
2026-10-24 17:56:31 +08:00
2026-10-23 14:03:20 +08:00
2026-10-26 15:49:58 +08:00
2026-10-24 16:58:18 +08:00
2026-10-17 12:17:44 +08:00
2026-10-24 03:00:07 +08:00
2026-10-27 21:24:30 +08:00
2026-10-21 20:10:25 -07:00
2026-10-21 20:10:25 -07:00
2026-10-21 20:10:25 -07:00
2026-10-21 20:10:25 -07:00
2026-10-25 11:29:17 +08:00
2026-10-25 08:29:20 +08:00
2026-10-27 04:59:27 +08:00
2026-10-28 11:34:28 +00:00
2026-10-24 11:09:17 +08:00
2026-10-27 05:57:26 +08:00
2026-10-23 07:21:50 +00:00
2026-10-27 07:35:13 +08:00
2026-10-11 05:16:03 +08:00
2026-10-24 04:23:56 +08:00
2026-10-27 07:40:55 +08:00
2026-10-12 11:34:02 +08:00
2026-10-11 05:33:15 +08:00
2026-10-27 06:28:15 +08:00
2026-10-24 15:02:26 +08:00
2026-10-24 23:49:25 +08:00
2026-10-11 13:29:50 +08:00
2026-10-20 00:37:45 +08:00
2026-10-24 08:22:14 +08:00
2026-10-24 08:22:14 +08:00
2026-10-24 04:23:56 +08:00
2026-10-14 08:46:50 +08:00
2026-10-11 04:43:02 +08:00
2026-10-25 11:29:17 +08:00
2026-10-24 15:02:26 +08:00
2026-10-11 17:43:28 +08:00
2026-10-11 04:43:02 +08:00
2026-10-14 08:46:50 +08:00
2026-10-11 04:43:02 +08:00
2026-10-14 19:13:17 -07:00
2026-10-24 07:43:49 +08:00
2026-10-23 02:23:58 +08:00
2026-10-24 03:00:09 +08:00
2026-10-08 04:03:24 +08:00
2026-10-24 22:35:20 +08:00
2026-10-19 06:22:32 +08:00
2026-10-28 16:01:17 +08:00
2026-10-24 08:22:14 +08:00
2026-10-25 07:31:42 +08:00
2026-10-25 07:31:42 +08:00
2026-10-26 23:06:36 +08:00
2026-10-27 06:43:07 +08:00
2026-10-27 07:54:09 +08:00
2026-10-26 22:20:00 +08:00
2026-10-17 15:24:57 +08:00
2026-10-28 11:34:28 +00:00
2026-10-25 10:08:11 +08:00
2026-10-26 14:20:01 +08:00
2026-10-24 15:08:10 +08:00
2026-10-27 15:13:47 +08:00
2026-10-14 21:15:34 +08:00
2026-10-24 05:27:39 +08:00
2026-10-24 05:08:24 +08:00
2026-10-14 19:49:08 +08:00
2026-10-07 21:09:33 +08:00
2026-10-27 14:04:44 +08:00
2026-10-14 13:58:12 +08:00
2026-10-23 12:27:24 +00:00
2026-10-28 11:34:28 +00:00
2026-10-25 04:09:11 +08:00
2026-10-26 02:33:31 +08:00
2026-10-20 00:05:22 +08:00
2026-10-22 17:20:07 +08:00
2026-10-24 11:44:12 +08:00
2026-10-24 22:06:41 +08:00
2026-10-24 00:54:28 +08:00
2026-10-28 11:34:28 +00:00
2026-10-27 17:13:17 +00:00
2026-10-24 08:22:14 +08:00
2026-10-27 06:27:10 +08:00
2026-10-25 07:57:07 +08:00
2026-10-20 07:19:58 +08:00
2026-10-27 03:02:05 +08:00
2026-10-24 02:35:21 +08:00
2026-10-28 11:34:28 +00:00
2026-10-28 11:34:28 +00:00
2026-10-25 07:31:42 +08:00
2026-10-27 03:14:14 +08:00
2026-10-20 02:01:00 +08:00
2026-10-14 08:31:16 +08:00
2026-10-25 08:29:20 +08:00
2026-10-24 06:46:22 +08:00
2026-10-11 06:10:10 +08:00
2026-10-24 06:24:55 +08:00
2026-10-23 19:18:47 +08:00
2026-10-24 03:11:07 +08:00
2026-10-11 04:43:02 +08:00
2026-10-23 19:18:47 +08:00
2026-10-27 08:34:42 +08:00
2026-10-24 06:24:55 +08:00
2026-10-26 15:14:05 +08:00
2026-10-24 02:29:44 +08:00
2026-10-24 06:04:41 +08:00
2026-10-14 13:58:18 +08:00
2026-10-24 06:24:55 +08:00
2026-10-23 21:34:45 +08:00
2026-10-22 06:12:42 +08:00
2026-10-11 06:10:10 +08:00
2026-10-13 14:51:23 +08:00
2026-10-24 02:40:21 +08:00
2026-10-14 08:31:16 +08:00
2026-10-25 07:31:42 +08:00
2026-10-27 17:13:17 +00:00
2026-10-27 17:13:17 +00:00
2026-10-25 17:25:18 +08:00
2026-10-23 12:27:24 +00:00
2026-10-24 11:41:34 +08:00
2026-10-14 19:48:30 +08:00
2026-10-20 05:29:43 +08:00
2026-10-27 21:24:30 +08:00
2026-10-25 07:31:42 +08:00
2026-10-20 05:29:43 +08:00
2026-10-25 11:29:17 +08:00
2026-10-28 11:34:28 +00:00
2026-10-28 11:34:28 +00:00
2026-10-24 15:08:10 +08:00
2026-10-28 11:34:28 +00:00
2026-10-26 15:49:58 +08:00
2026-10-24 15:08:10 +08:00
2026-10-25 07:31:42 +08:00
2026-10-27 05:36:09 +08:00
2026-10-25 05:28:31 +08:00
2026-10-24 02:29:44 +08:00
2026-10-24 03:00:10 +08:00
2026-10-25 07:31:42 +08:00
2026-10-27 12:45:57 +08:00
2026-10-28 00:20:07 +08:00
2026-10-21 19:47:52 +08:00
2026-10-26 17:14:02 +08:00
2026-10-25 07:31:42 +08:00
2026-10-13 19:30:50 +08:00
2026-10-24 15:38:35 +08:00
2026-10-13 12:06:41 +08:00
2026-10-28 11:34:28 +00:00
2026-10-25 08:29:20 +08:00
2026-10-21 19:47:52 +08:00
2026-10-25 07:31:42 +08:00
2026-10-25 07:31:42 +08:00
2026-10-27 05:42:50 +08:00
2026-10-27 00:25:43 +08:00
2026-10-27 02:16:08 +08:00
2026-10-27 09:16:02 +08:00
2026-10-25 10:06:34 +08:00
2026-10-27 21:33:49 +08:00
2026-10-24 16:18:25 +00:00
2026-10-09 19:29:31 -07:00
2026-10-19 08:45:04 +08:00
2026-10-28 11:34:28 +00:00
2026-10-17 17:14:16 +08:00
2026-10-28 11:34:28 +00:00
2026-10-15 18:38:19 +00:00
2026-10-28 11:34:28 +00:00
2026-10-25 05:20:24 -07:00