FredKSchott / rollup-plugin-polyfill-node

A modern Node.js polyfill for your Rollup bundle.
Other
178 stars 57 forks source link

Error: 'homedir' is not exported by polyfill-node.os.js, imported by src/constant.ts #52

Open islandZZZ opened 2 years ago

islandZZZ commented 2 years ago

I'm using 0.9.0 and seeing this error when I bundle.

2: import { homedir as homeDir } from 'os';
            ^
Error: 'homedir' is not exported by polyfill-node.os.js, imported by src/constant.ts

homedir is a function that returns the string path of the current user's home directory.

I'd like to submit a PR to resolve this problem soon.

MichaelDeBoey commented 1 year ago

Closed by #53