Skip to content

Make IO and path operations replaceable for use in VFS contexts. - #243

Open
mash-graz wants to merge 2 commits into
11ty:mainfrom
mash-graz:main
Open

mash-graz wants to merge 2 commits into
11ty:mainfrom
mash-graz:main

Conversation

@mash-graz

Copy link
Copy Markdown

These changes are required for Lume VFS support.

Fixes: #242

As long as no alternative read or resolve operation gets set via global customLoader object, everything behaves just as before.

Internally some minor changes were made, to use async readFile instead of readFileSync.

@Ryuno-Ki

Copy link
Copy Markdown

LGTM.

(I don't have the right permissions here)

@zachleat zachleat closed this Sep 16, 2026
@zachleat zachleat reopened this Sep 16, 2026
@zachleat

Copy link
Copy Markdown
Member

Closing/reopening to get CI back

@zachleat

Copy link
Copy Markdown
Member

Looks like there are some errors here that need fixing

These changes are required for Lume VFS support.

Fixes: 11ty#242

As long as no alternative `read` or `resolve` operation gets set via
global `custom Loader` object, everything behaves just as before.

Internally some minor changes were made, to use async `readFile`
instead of `readFileSync`.
@mash-graz

Copy link
Copy Markdown
Author

@zachleat
sorry for the flaws of this patch.

Now I fixed the async IO changes.
All tests should succeed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Development

Successfully merging this pull request may close these issues.

Feature request: custom loader API

3 participants