-
I tried using BrowserFS for a project, but it didn't work because its implementation of It looks like ZenFS does support However, I haven't been able to figure out how to use ZenFS with Webpack. The BrowserFS readme file has very detailed instructions on how to configure it to work with Webpack, but the ZenFS readme doesn't contain this information. Could you provide instructions on how to use it with Webpack? Much of the code I'm using uses |
Beta Was this translation helpful? Give feedback.
Replies: 0 comments 1 reply
-
ZenFS has a named export For usage with Webpack, you should be able to use something like this in your config: {
"resolve": {
"alias": {
"fs": "@zenfs/core"
}
}
} I apologize for not getting back to you sooner, I did not have the correct notification settings. |
Beta Was this translation helpful? Give feedback.
ZenFS has a named export
fs
, which is also the default export. This export is a drop-in replacement for Node'sfs
module. ZenFS does not require you to shimbuffer
,path
, orprocess
.For usage with Webpack, you should be able to use something like this in your config:
I apologize for not getting back to you sooner, I did not have the correct notification settings.