Skip to content

Monorepo setup fs/promises #118

Discussion options

You must be logged in to vote

No, I'm not using NextJS. I investigated the issue... basically there are two things going wrong:

1. Incomplete polyfill
The issue would happen with any non-browser compatible module. You currently prevent this for most people in your lib by polyfilling node internals with a Vite plugin. But the polyfill you are using, does not support fs/promises, only fs (I guess the same is true for the other node:std/promises packages).

It would be the easiest solution if all Node internals would be polyfilled. It kind of defeats one of the main monorepo purposes if I have to undo code-colocation...

2. Tree-shaking
The tree-shaking is off for the preview (building works fine). Not sure why that is. Mo…

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@florianbepunkt
Comment options

Answer selected by florianbepunkt
@shellscape
Comment options

@florianbepunkt
Comment options

@shellscape
Comment options

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