Skip to content

Using memfs to replace webpack/memory-fs #45

@dai-shi

Description

@dai-shi

Hi,
I'm trying to use memfs as well as unionfs and linkfs with webpack replacing memory-fs.

So far, I had two issues, which are actually not directly related to memfs though.

  • unionfs doesn't pass mkdirp, although memfs implements it.
    webpack requires mkdirp and my workaround is to patch it:
ufs1.mkdirp = (...args) => ufs1.asyncMethod('mkdirp', args);
if (func) func.apply(fs, args);

or something like this helps my case.

I could try preparing a PR, but I'd leave it for now as you might have a better design choice.

Thanks for your great work!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions