error during build:
RollupError: "existsSync" is not exported by "node_modules/.pnpm/node-stdlib-browser@1.2.0/node_modules/node-stdlib-browser/esm/mock/empty.js", imported by "src/index.ts".
...
if works if you remove "type": "module" from package.json
Reproduction: https://github.com/Jinjiang/reproductions/tree/vite-node-polyfill-20240214
error log:
if works if you remove
"type": "module"
frompackage.json