@jsenv/core 41.2.5 → 41.2.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -10628,6 +10628,11 @@ const createBuildSpecifierManager = ({
10628
10628
  const finalUrl = internalRedirections.get(rawUrl) || rawUrl;
10629
10629
  const urlInfo = finalKitchen.graph.getUrlInfo(finalUrl);
10630
10630
  if (!urlInfo) {
10631
+ if (rel === "preconnect" || rel === "dns-prefetch") {
10632
+ // preconnect/dns-prefetch hints refer to origins, not specific resources in the graph.
10633
+ // Keep them as-is — the author knows what external domains will be used at runtime.
10634
+ return;
10635
+ }
10631
10636
  logger.warn(
10632
10637
  `${UNICODE.WARNING} remove resource hint because cannot find "${href}" in the graph`,
10633
10638
  );
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jsenv/core",
3
- "version": "41.2.5",
3
+ "version": "41.2.6",
4
4
  "type": "module",
5
5
  "description": "Tool to develop, test and build js projects",
6
6
  "repository": {
@@ -917,6 +917,11 @@ export const createBuildSpecifierManager = ({
917
917
  const finalUrl = internalRedirections.get(rawUrl) || rawUrl;
918
918
  const urlInfo = finalKitchen.graph.getUrlInfo(finalUrl);
919
919
  if (!urlInfo) {
920
+ if (rel === "preconnect" || rel === "dns-prefetch") {
921
+ // preconnect/dns-prefetch hints refer to origins, not specific resources in the graph.
922
+ // Keep them as-is — the author knows what external domains will be used at runtime.
923
+ return;
924
+ }
920
925
  logger.warn(
921
926
  `${UNICODE.WARNING} remove resource hint because cannot find "${href}" in the graph`,
922
927
  );