Skip to content

Commit

Permalink
update option types
Browse files Browse the repository at this point in the history
  • Loading branch information
ryansolid committed Feb 29, 2024
1 parent dfdd6d2 commit 7500d78
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 8 deletions.
5 changes: 5 additions & 0 deletions .changeset/moody-lobsters-cheer.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'vite-plugin-solid': patch
---

update option types
15 changes: 7 additions & 8 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,22 +38,21 @@ export interface Options {
*
* @default true
*/
dev: boolean;
dev?: boolean;
/**
* This will force SSR code in the produced files. This is experiemental
* and mostly not working yet.
* This will force SSR code in the produced files.
*
* @default false
*/
ssr: boolean;
ssr?: boolean;

/**
* This will inject HMR runtime in dev mode. Has no effect in prod. If
* set to `false`, it won't inject the runtime in dev.
*
* @default true
*/
hot: boolean;
hot?: boolean;
/**
* This registers additional extensions that should be processed by
* vite-plugin-solid.
Expand All @@ -67,7 +66,7 @@ export interface Options {
*
* @default {}
*/
babel:
babel?:
| babel.TransformOptions
| ((source: string, id: string, ssr: boolean) => babel.TransformOptions)
| ((source: string, id: string, ssr: boolean) => Promise<babel.TransformOptions>);
Expand All @@ -77,14 +76,14 @@ export interface Options {
*
* @default {}
*/
solid: {
solid?: {
/**
* Removed unnecessary closing tags from template strings. More info here:
* https://github.com/solidjs/solid/blob/main/CHANGELOG.md#smaller-templates
*
* @default false
*/
omitNestedClosingTags: boolean;
omitNestedClosingTags?: boolean;

/**
* The name of the runtime module to import the methods from.
Expand Down

0 comments on commit 7500d78

Please sign in to comment.