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

chore(svelte-table): cleanup package.json #5920

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

Conversation

benmccann
Copy link

@benmccann benmccann commented Feb 14, 2025

The module and svelte field will both be ignored since exports is present, so there's no reason to have either of them.

Within exports, the svelte and import statements can be replaced with a single default statement. It's also nicer to use default since it produces better error messages when imported in an unsupported environment - e.g. if you were to import it in a CJS project (though in this case that'd be near impossible since Svelte 4+ is ESM-only)

Exporting package.json is also unnecessary. There was an old version of rollup-plugin-svelte that required it, but that's been fixed there and so is no longer needed

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