@cosyte/synth 0.1.8 → 0.1.9

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.
@@ -480,7 +480,12 @@ function isRequireEsmRefusal(error) {
480
480
  }
481
481
  function loadPeer(specifier, host) {
482
482
  if (host.resolve === void 0) return host.require(specifier);
483
- const entry = url.fileURLToPath(host.resolve(specifier));
483
+ let entry;
484
+ try {
485
+ entry = url.fileURLToPath(host.resolve(specifier));
486
+ } catch {
487
+ return host.require(specifier);
488
+ }
484
489
  try {
485
490
  return host.require(entry);
486
491
  } catch (error) {