-
-
Notifications
You must be signed in to change notification settings - Fork 69
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
Use compiler.inputFileSystem to make thread-loader work with memfs #94
Comments
I am very interested in this as well... it would probably have to stub fs and proxy them to the parent process. |
@evilebottnawi @Mesoptier thoughts on this? |
I'm wondering if the fs API surface could be proxied to the parent process or at least the methods explicitly defined in the input file system wrapper. |
@jsg2021 we can create wrapper for fs calls, like we do it for |
not resovled yet? |
Need added a test case with |
I couldn't make thread-loader open an entry file from memory system as it yielding the following error:
ENOENT: no such file or directory, open
. I assume it has to do with the fact worker.js usesfs
https://github.com/webpack-contrib/thread-loader/blob/master/src/worker.js#L3.Would using
_compiler.inputFileSystem
or allowing an option to specify a in-memory file system in the loader allow that?Repro below (create the package.json/index.js and run
npm test
):package.json
index.js
Output
The text was updated successfully, but these errors were encountered: