Michael Wang
3f3fa67f9c
fix(producer): charge generated mount scripts and scoped styles to the budget ( #8094 )
...
* fix(producer): charge generated mount scripts and scoped styles to the expansion budget
The expansion budget charged only the source bytes of each mounted file.
The inliner wraps every inline script in kilobytes of scoping code and
prefixes every style rule with the host's scope, so tiny scripts or a long
composition id over many rules assembled a page hundreds of times larger
than its source.
The inliner now reports what it generates through a chargeEmitted option.
Each wrapped script is charged once built. Each style rule reserves an upper
bound before it is scoped and settles to its real size after, so no rule is
built past the limit. Generated output has its own 32 MB allowance.
* fix(core): reserve the separator postcss re-joins scoped selectors with
The per-rule reservation summed a bound per selector but left out the
separator. postcss's selectors setter re-joins the list with the first
separator in the authored selector, so a wide first separator over many
selectors grew the rule past its reservation before it was charged.
* test(core): give the scoper bound test the same time limit as its neighbour
2026-11-17 22:53:11 +00:00
..
2026-10-02 17:14:52 +00:00
2026-10-06 11:02:51 +00:00
2026-11-15 22:53:06 +00:00
2026-11-17 20:01:35 +00:00
2026-09-24 20:26:15 -04:00
2026-05-15 16:23:12 -07:00
2026-10-21 19:19:31 +00:00
2026-10-04 01:27:10 +00:00
2026-10-04 01:27:10 +00:00
2026-09-18 15:10:35 -04:00
2026-11-15 02:12:42 +00:00
2026-10-09 18:04:42 +00:00
2026-10-09 22:19:38 +00:00
2026-09-19 16:53:29 -04:00
2026-09-19 16:53:29 -04:00
2026-09-23 12:09:46 -04:00
2026-09-10 08:21:49 -04:00
2026-09-10 08:21:49 -04:00
2026-10-07 03:11:49 +00:00
2026-10-07 03:11:49 +00:00
2026-08-10 18:46:03 -04:00
2026-08-14 11:20:37 -07:00
2026-11-16 18:16:05 +00:00
2026-10-05 15:52:51 -07:00
2026-10-05 23:32:46 +00:00
2026-10-09 22:19:38 +00:00
2026-11-12 11:39:42 +00:00
2026-08-04 03:08:04 -07:00
2026-08-09 22:07:57 -07:00
2026-08-01 17:21:41 -07:00
2026-09-23 12:09:46 -04:00
2026-09-23 12:09:46 -04:00
2026-10-20 09:12:47 +00:00
2026-10-20 09:12:47 +00:00
2026-10-21 02:46:17 +00:00
2026-10-21 02:46:17 +00:00
2026-11-11 06:26:24 +00:00
2026-11-17 05:05:28 +00:00
2026-11-14 17:00:47 +00:00
2026-11-16 00:21:21 +00:00
2026-11-16 00:21:21 +00:00
2026-11-16 01:50:04 +00:00
2026-11-16 00:18:47 +00:00
2026-09-22 07:04:54 -04:00
2026-10-22 18:45:53 +00:00
2026-08-04 00:37:48 -07:00
2026-10-26 08:38:20 +00:00
2026-10-30 03:06:12 +00:00
2026-10-10 09:04:47 +00:00
2026-10-10 09:04:47 +00:00
2026-11-16 05:52:09 +00:00
2026-11-17 19:26:39 +00:00
2026-09-23 16:56:16 -04:00
2026-11-14 16:38:35 -05:00
2026-11-02 04:13:57 +00:00
2026-07-18 13:24:57 -04:00
2026-07-18 13:24:57 -04:00
2026-10-03 17:04:44 +00:00
2026-10-03 17:04:44 +00:00
2026-11-15 02:12:42 +00:00
2026-11-15 02:12:42 +00:00
2026-09-22 11:24:51 -04:00
2026-09-22 11:24:51 -04:00
2026-09-23 19:09:09 -04:00
2026-07-16 17:29:19 -04:00
2026-11-12 19:58:01 +00:00
2026-10-28 05:15:06 +00:00
2026-10-10 19:08:30 +00:00
2026-09-23 16:56:16 -04:00
2026-11-15 00:47:08 +00:00
2026-11-15 00:47:08 +00:00
2026-10-27 05:38:33 +00:00
2026-10-27 05:38:33 +00:00
2026-07-11 01:20:22 -07:00
2026-07-11 01:20:22 -07:00
2026-07-11 21:57:45 -07:00
2026-07-11 21:57:45 -07:00
2026-11-16 01:09:58 +00:00
2026-06-25 11:20:11 -04:00
2026-10-29 05:20:41 +00:00
2026-10-29 05:20:41 +00:00
2026-10-22 08:49:29 +00:00
2026-10-22 08:49:29 +00:00
2026-06-02 20:34:29 -04:00
2026-08-09 22:07:57 -07:00
2026-10-22 21:18:17 +00:00
2026-11-17 05:05:28 +00:00
2026-09-24 23:28:36 -04:00
2026-10-01 07:21:05 -07:00
2026-10-01 10:13:48 -07:00
2026-10-01 07:21:05 -07:00
2026-10-01 07:21:05 -07:00
2026-10-21 19:19:31 +00:00
2026-11-16 01:50:04 +00:00
2026-09-19 16:53:29 -04:00
2026-11-13 19:15:42 +00:00
2026-11-13 19:15:42 +00:00
2026-10-15 17:43:09 +00:00
2026-08-18 01:37:46 -04:00
2026-10-20 19:09:11 +00:00
2026-11-04 18:09:27 +00:00
2026-10-30 15:48:25 +00:00
2026-09-18 13:06:09 -04:00
2026-10-02 17:14:52 +00:00
2026-10-21 05:25:09 +00:00
2026-11-04 18:09:27 +00:00
2026-09-23 12:09:46 -04:00
2026-11-16 06:42:11 +00:00
2026-09-23 16:56:16 -04:00
2026-09-23 12:09:46 -04:00
2026-09-23 12:09:46 -04:00
2026-11-17 19:26:39 +00:00
2026-10-01 23:56:36 +00:00
2026-11-10 20:01:29 +00:00
2026-11-10 20:01:29 +00:00
2026-10-26 08:20:55 +00:00
2026-08-04 23:13:19 +00:00
2026-10-26 07:20:03 +00:00
2026-08-03 10:14:37 +02:00
2026-11-17 21:41:22 +00:00
2026-11-17 21:41:22 +00:00
2026-11-17 21:47:09 +00:00
2026-11-17 21:47:09 +00:00
2026-09-25 16:50:55 +00:00
2026-09-27 21:58:51 +00:00
2026-09-27 21:58:51 +00:00
2026-07-22 00:41:40 +08:00
2026-11-17 22:53:11 +00:00
2026-07-18 15:58:23 -04:00
2026-07-18 15:58:23 -04:00
2026-09-28 22:03:59 +00:00
2026-09-24 11:19:00 -04:00
2026-09-19 16:53:29 -04:00
2026-11-16 18:16:05 +00:00
2026-11-17 20:00:37 +00:00
2026-11-17 16:55:33 +00:00
2026-11-10 20:01:29 +00:00
2026-09-09 00:47:31 -04:00
2026-08-10 18:46:03 -04:00
2026-11-17 20:01:35 +00:00
2026-08-04 03:06:32 -07:00
2026-08-04 03:06:32 -07:00
2026-10-21 05:25:09 +00:00
2026-11-17 05:20:53 +00:00
2026-06-02 20:34:29 -04:00
2026-06-02 20:34:29 -04:00
2026-10-15 05:59:41 +00:00
2026-10-15 05:59:41 +00:00
2026-09-23 12:09:46 -04:00
2026-09-27 21:58:51 +00:00
2026-11-06 04:35:33 +00:00
2026-11-16 04:48:52 +00:00
2026-11-11 06:26:24 +00:00
2026-09-28 22:03:59 +00:00
2026-04-17 17:43:43 +02:00
2026-11-15 22:53:06 +00:00
2026-09-21 21:14:49 -04:00
2026-11-03 11:07:02 +00:00
2026-08-09 22:07:57 -07:00
2026-11-15 00:47:08 +00:00
2026-11-15 00:47:08 +00:00
2026-11-17 05:20:53 +00:00
2026-11-17 05:20:53 +00:00
2026-11-15 07:22:20 +00:00
2026-11-15 07:22:20 +00:00
2026-11-11 06:26:24 +00:00
2026-11-06 04:35:33 +00:00