Fix an infinite loop if rollup config can't be found.
Review Request #12956 — Created April 14, 2023 and submitted
The code to try to find the rollup configuration file iterates up
the directory tree until either the config is found or we hit the root.
Unfortunately, this was comparing a
Pathobject (for the current path)
str(for the root), which always evaluates to
result was that if there's no rollup config, we'd end up infinitely
/. This change fixes that.
Tried to load an extension which defined an
index.tsfile in its
bundles but did not have a
rollup.config.jsfile. Saw that we no
longer hit the infinite loop.