sindresorhus / globby

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

Fix code example on readme #205

Closed EarthlingDavey closed 2 years ago

EarthlingDavey commented 2 years ago

It seems import {globby} from 'globby'; should be import globby from 'globby'; so I have removed the {}s.

fisker commented 2 years ago

The original one is correct, it's named export.

EarthlingDavey commented 2 years ago

ofc there must be some reason that only import globby from 'globby'; works with my setup. Seems like you don't really mind. And I don't mind either :) See ya 👎

fisker commented 2 years ago

I'm not the repo owner, the export is here https://github.com/sindresorhus/globby/blob/de4082b09dcd36f7053a4e63d3dff8994dee35e8/index.js#L123

EarthlingDavey commented 2 years ago

ok sure thing. IDK why it would only play nice in my nextjs project without the {}