-
Notifications
You must be signed in to change notification settings - Fork 916
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
Conversation
This pull request is being automatically deployed with Vercel (learn more). 🔍 Inspect: https://vercel.com/pikapkg/snowpack/5fzilkk48 |
9a014b6
to
006e7b5
Compare
There was a problem hiding this 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 | ||
{ |
There was a problem hiding this comment.
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"?`, |
There was a problem hiding this comment.
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
/cc @Rich-Harris
Changes
Testing
Docs