Skip to content

Using ZenFS with Webpack? #111

Answered by james-pre
wch asked this question in Q&A
May 2, 2024 · 0 comment · 1 reply
Discussion options

You must be logged in to vote

ZenFS has a named export fs, which is also the default export. This export is a drop-in replacement for Node's fs module. ZenFS does not require you to shim buffer, path, or process.

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.

Replies: 0 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by james-pre
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants