blob: a57c4bc1f045b0e8cdefca0d388e5f70eaee1981 [file] [log] [blame]
Philipp Schraderba072d92024-02-21 17:00:37 -08001From 5c0b6653d0fa500b5ad3a65f8e58c97517f2d6bd Mon Sep 17 00:00:00 2001
Philipp Schrader175a93c2023-02-19 13:13:40 -08002From: Philipp Schrader <philipp.schrader@gmail.com>
Philipp Schraderba072d92024-02-21 17:00:37 -08003Date: Wed, 21 Feb 2024 17:26:27 -0800
Philipp Schrader175a93c2023-02-19 13:13:40 -08004Subject: [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---
Philipp Schraderba072d92024-02-21 17:00:37 -08009 rollup/private/rollup.bzl | 2 +-
Philipp Schrader175a93c2023-02-19 13:13:40 -080010 1 file changed, 1 insertion(+), 1 deletion(-)
11
Philipp Schraderba072d92024-02-21 17:00:37 -080012diff --git a/rollup/private/rollup.bzl b/rollup/private/rollup.bzl
13index c1634cf..8cd5407 100644
14--- a/rollup/private/rollup.bzl
15+++ b/rollup/private/rollup.bzl
16@@ -96,7 +96,7 @@ def _resolve_js_input(f, inputs):
Philipp Schrader175a93c2023-02-19 13:13:40 -080017 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):