Skip to content

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