blob: a81a656474bf18c646b7193c279186181e52634d [file] [log] [blame]
Philipp Schrader175a93c2023-02-19 13:13:40 -08001From fd6dd080ea58fd71c70ce2303873feab1abda760 Mon Sep 17 00:00:00 2001
2From: Philipp Schrader <philipp.schrader@gmail.com>
3Date: Sun, 19 Feb 2023 14:18:11 -0800
4Subject: [PATCH] Fix resolving files
5
6I don't really know what the underlying problem is, but returning a
7File instead of a path is causing us grief.
8---
9 rollup/private/rollup_bundle.bzl | 2 +-
10 1 file changed, 1 insertion(+), 1 deletion(-)
11
12diff --git a/rollup/private/rollup_bundle.bzl b/rollup/private/rollup_bundle.bzl
13index 32aaad4..a2061dd 100644
14--- a/rollup/private/rollup_bundle.bzl
15+++ b/rollup/private/rollup_bundle.bzl
16@@ -186,7 +186,7 @@ def _resolve_js_input(f, inputs):
17 for i in inputs:
18 if i.extension == "js" or i.extension == "mjs":
19 if _no_ext(i) == no_ext:
20- return i
21+ return i.short_path
22 fail("Could not find corresponding javascript entry point for %s. Add the %s.js to your deps." % (f.path, no_ext))
23
24 def _rollup_outs(sourcemap, name, entry_point, entry_points, output_dir):