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

Define exports.types in package.json #23

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

alexanderl19
Copy link

exports.types in package.json is currently missing.

This prevents some bundlers (tested with vite/sveltekit) from properly finding the types for this package despite the types property.

If anyone else is running into this problem, I've aliased poline to the ts file directly in my vite config as a hacky work around. Here's my config:

{
	resolve: {
		alias: {
			poline: './node_modules/poline/src/index.ts',
		},
	},
	...
}

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.

1 participant