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

svelte plugin: refactor tests, document new format, clean up config loading #1304

Merged
merged 2 commits into from
Oct 15, 2020

Conversation

FredKSchott
Copy link
Owner

/cc @Rich-Harris

Changes

  • Follow up to normalize svelte.config.js format #1303 (see that PR for background)
  • Clean up how config is loaded
  • Add some basic mistake and error handling, especially to help upgrade breaking changes

Testing

  • Refactor tests and add new ones

Docs

  • Update plugin README

@FredKSchott FredKSchott requested a review from a team as a code owner October 14, 2020 04:40
@vercel
Copy link

vercel bot commented Oct 14, 2020

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/pikapkg/snowpack/5fzilkk48
✅ Preview: https://snowpack-git-svelte-cleanup-options.pikapkg.vercel.app

Copy link
Contributor

@melissamcewen melissamcewen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Docs look great!

You can pass Svelte HMR specific options through the `hot` option of the plugin. Here are the available options and their defaults:

```js
{
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this didn't appear to be relevant, replaced with a link to the svelte-hmr main repo documentation


if (pluginOptions.compileOptions !== undefined) {
throw new Error(
`[plugin-svelte] Could not recognize "compileOptions". Did you mean "compilerOptions"?`,
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

😅 only because I did this and didn't realize it

@FredKSchott FredKSchott merged commit fe4bd1b into master Oct 15, 2020
@FredKSchott FredKSchott deleted the svelte-cleanup-options branch October 15, 2020 18:51
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