sindresorhus / globby

User-friendly glob matching
MIT License
2.51k stars 130 forks source link

Fix node imports #196

Closed Moebits closed 2 years ago

Moebits commented 2 years ago

Fix the node imports which are broken on newer versions of node

E.g. Error: Cannot find module node:util

Node version: 16.3.0

sindresorhus commented 2 years ago

These are completely valid imports: https://github.com/nodejs/node/issues/38343

Moebits commented 2 years ago

The imports are not working for me, if it's not a Node issue then it might be Typescript or Electron.

For compatibility sake I suggest that you use the traditional imports, otherwise I will have to stick to using my fork of this project.