Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix relative require #84

Merged
merged 1 commit into from
Nov 28, 2024
Merged

Fix relative require #84

merged 1 commit into from
Nov 28, 2024

Conversation

schneems
Copy link
Member

Requiring from one file to another works, requiring one file that requires another doesn't. This change fixes that.

The problem was the execution context was being threaded through unchanged, instead it should have been modifying the source path to reflect that a different document was being executed.

Close #80

Requiring from one file to another works, requiring one file that requires another doesn't. This change fixes that.

The problem was the execution context was being threaded through unchanged, instead it should have been modifying the source path to reflect that a different document was being executed.

Close #80
@schneems schneems force-pushed the schneems/fix-require-relative branch from d13dbc3 to fa49d11 Compare November 28, 2024 04:19
@schneems schneems marked this pull request as ready for review November 28, 2024 04:21
@schneems schneems merged commit 292f6b8 into main Nov 28, 2024
13 checks passed
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.

Require should be relative from document that it's in, not from the parent doc
1 participant