@jsenv/plugin-bundling 2.10.7 → 2.10.8

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jsenv/plugin-bundling",
3
- "version": "2.10.7",
3
+ "version": "2.10.8",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/jsenv/core",
@@ -23,7 +23,7 @@
23
23
  ],
24
24
  "dependencies": {
25
25
  "@jsenv/humanize": "1.7.5",
26
- "@jsenv/node-esm-resolution": "1.2.14",
26
+ "@jsenv/node-esm-resolution": "1.2.15",
27
27
  "@jsenv/sourcemap": "1.3.16",
28
28
  "@jsenv/url-meta": "8.5.7",
29
29
  "@jsenv/urls": "2.9.7",
@@ -726,6 +726,12 @@ const rollupPluginJsenv = ({
726
726
  }
727
727
  }
728
728
  const urlInfo = graph.getUrlInfo(resolvedUrl);
729
+ if (!urlInfo) {
730
+ throw new Error(
731
+ `Cannot find ${resolvedUrl} in the graph, imported by ${importer}.
732
+ A file can be built only when all deps are in the graph (cookDependencies must be called on the importer)`,
733
+ );
734
+ }
729
735
  if (urlInfo.type === "entry_build") {
730
736
  return {
731
737
  id: resolvedUrl,