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

7.0.0 breaks when using a bundler (Rollup). #67

Closed
Jason3S opened this issue Nov 28, 2023 · 1 comment
Closed

7.0.0 breaks when using a bundler (Rollup). #67

Jason3S opened this issue Nov 28, 2023 · 1 comment

Comments

@Jason3S
Copy link

Jason3S commented Nov 28, 2023

image

unicorn-magic/package.json

	"type": "module",
	"exports": {
		"types": "./index.d.ts",
		"node": "./node.js",
		"default": "./default.js"
	},

Rollup is resolving to default.js instead of node.js. Based upon the default rules used by https://www.npmjs.com/package/@rollup/plugin-node-resolve

See:

187b2a1#r133637011

Is it really necessary to have a dependency upon unicore-magic for a single line function?

@sindresorhus
Copy link
Owner

This is a problem with Rollup, not this package. The unicorn-magic package simply uses the exports field like it was meant. You need to open an issue on Rollup instead.

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

No branches or pull requests

2 participants