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

Support using a fs.FS for input and output files #3954

Open
xremming opened this issue Oct 28, 2024 · 0 comments
Open

Support using a fs.FS for input and output files #3954

xremming opened this issue Oct 28, 2024 · 0 comments

Comments

@xremming
Copy link

I am building a deep integration with ESBuild to my Go application. Due to how it works, some of the files are embedded, and some are on the filesystem, and all access to files happen through the fs.FS interface.

In essence, I would like to be able to pass an fs.FS interface to all of the different methods and functions and for ESBuild to use it for all file accesses. Another separate fs.FS should be available to be passed for the output (as the embed.FS is read-only).

It should be a relatively straightforward change, but as I don't know the codebase, I cannot be sure.

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

No branches or pull requests

1 participant