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

File System Emulation #1833

Closed
tryhardest opened this issue Jun 18, 2021 · 4 comments
Closed

File System Emulation #1833

tryhardest opened this issue Jun 18, 2021 · 4 comments

Comments

@tryhardest
Copy link

Noticed the multiple bundler docs page has nothing on it.

image

That said, noticed this in the ES build repo and this is exactly what we need (File system emulation) but not looking to get into Webpack, Parcel or Rollup atm. This looks great but would it fit the scope? Having the top-level directory being bundled and all files inside it (or at least, the subset of the top-level directory that you intend to be accessible at run-time) into the bundle couldn't be described any better and is exactly what I am looking for. Thanks.

evanw/esbuild#1375

@kdy1
Copy link
Member

kdy1 commented Jun 18, 2021

I think passing multiple files as enrties to the bundler would work for most of the bundlers.
Why is fs emulation required?

@CodeWithOz
Copy link

The particular use case is one where the code uses node's fs.open method. The file being opened is not an entry point for the app, it's a file that's needed by a dependency of the app. Please have a look at the exact code I'm referring to here. I'm using that package and ESbuild fails to bundle because of that line of code.

@kdy1
Copy link
Member

kdy1 commented Jun 19, 2021

I'll happily accept a PR and maintain it, but I think I'll not implement this by myself because I have lots of things to do.

@kdy1 kdy1 closed this as completed Aug 13, 2021
@swc-bot
Copy link
Collaborator

swc-bot commented Oct 22, 2022

This closed issue has been automatically locked because it had no new activity for a month. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you.

@swc-project swc-project locked as resolved and limited conversation to collaborators Oct 22, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

4 participants