Skip to content

Conversation

@nyannyacha
Copy link
Contributor

@nyannyacha nyannyacha commented Nov 5, 2025

What kind of change does this PR introduce?

Bug fix

Description

The path of content included in eszip does not always start with the entrypoint's base path.

For example:

File (1): functions/meow/index.ts (marked as entrypoint)
File (2): functions/shared/mod.ts
Base path: functions/meow

Simply calling String::replace to trim the base path from functions/shared/mod.ts will do nothing.
Therefore, assuming the output path is /home/meow/output, mod.ts would be created under /home/meow/output/functions/meow/functions/shared, which is incorrect behavior.

@nyannyacha nyannyacha requested a review from a team November 6, 2025 00:13
@nyannyacha nyannyacha merged commit 89356d8 into main Nov 6, 2025
5 checks passed
@nyannyacha nyannyacha deleted the ny/FUNC-342-use-pathdiff-instead-of-replace branch November 6, 2025 00:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants