Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix toPath imported from unicorn-magic is not exported #1

Closed
wants to merge 1 commit into from

Conversation

boxexchanger
Copy link

@sindresorhus
Copy link
Owner

This is invalid. default.js is for any environment and node.js is for Node.js. toPath only works for Node.js. The config in this package is correct, so the problem is your bundler config.

@boxexchanger
Copy link
Author

hi i'm using clear nuxt.js v3 app

@boxexchanger
Copy link
Author

image

@TheAlexLichter
Copy link

TheAlexLichter commented Nov 28, 2023

This is invalid. default.js is for any environment and node.js is for Node.js. toPath only works for Node.js. The config in this package is correct, so the problem is your bundler config.

But what if you want to build for non-node environments (e.g. cloudflare workers) and still want to use sth. like globby? 🤔
Since that change, it is not universally usable anymore.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants