@sanity/pkg-utils 7.7.1-canary.1 → 7.7.1-canary.2

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.
@@ -475,8 +475,8 @@ async function resolveBuildContext(options) {
475
475
  if (browserslist2) {
476
476
  if (browserslist2 === "extends @sanity/browserslist-config" && strictOptions2.noImplicitBrowsersList !== "off")
477
477
  try {
478
- const require2 = node_module.createRequire(path__default.default.resolve(cwd, "package.json")), { version } = require2("@sanity/browserslist-config/package.json");
479
- assert__default.default.ok(version, "browserslist-config is not installed");
478
+ const { findPackageJSON } = await import("node:module"), browsersListPath = findPackageJSON("@sanity/browserslist-config", cwd);
479
+ assert__default.default.ok(browsersListPath, "browserslist-config is not installed");
480
480
  } catch (error) {
481
481
  if (strictOptions2.noImplicitBrowsersList === "error")
482
482
  throw new Error(