You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Issue Background:
While developing a SWC plugin, the environment you're working in is a virtual environment, but you need to create new files as you traverse each JavaScript file. The issue you're encountering is that you're unable to directly access the host's file system for read and write operations.
Specific Problem:
You want to perform file system operations like reading and writing to the host machine's file system within the SWC plugin.
The SWC plugin runs in a virtualized environment, which prevents direct access to the host file system for read/write operations.
Therefore, you need a method to access the host's file system in order to create new files while processing each JS file.
Desired Solution:
You are looking for a mechanism or extension from SWC that would allow your plugin to access the host file system for read and write operations, particularly to create new files during the file traversal process.
Babel plugin or link to the feature description
No response
Additional context
No response
The text was updated successfully, but these errors were encountered:
The reason I said there's a limited fs system is, there's a mounted /cwd for the wasi plugin which allows to access to the current working dir. If plugin want unlimited access to the host filesystem, that's not supported.
Describe the feature
Issue Background:
While developing a SWC plugin, the environment you're working in is a virtual environment, but you need to create new files as you traverse each JavaScript file. The issue you're encountering is that you're unable to directly access the host's file system for read and write operations.
Specific Problem:
Desired Solution:
Babel plugin or link to the feature description
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: