Philipp Schrader | 175a93c | 2023-02-19 13:13:40 -0800 | [diff] [blame^] | 1 | From fd6dd080ea58fd71c70ce2303873feab1abda760 Mon Sep 17 00:00:00 2001 |
| 2 | From: Philipp Schrader <philipp.schrader@gmail.com> |
| 3 | Date: Sun, 19 Feb 2023 14:18:11 -0800 |
| 4 | Subject: [PATCH] Fix resolving files |
| 5 | |
| 6 | I don't really know what the underlying problem is, but returning a |
| 7 | File 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 | |
| 12 | diff --git a/rollup/private/rollup_bundle.bzl b/rollup/private/rollup_bundle.bzl |
| 13 | index 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): |