Skip to content

Commit 7500d78

Browse files
committed
update option types
1 parent dfdd6d2 commit 7500d78

File tree

2 files changed

+12
-8
lines changed

2 files changed

+12
-8
lines changed

.changeset/moody-lobsters-cheer.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'vite-plugin-solid': patch
3+
---
4+
5+
update option types

src/index.ts

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -38,22 +38,21 @@ export interface Options {
3838
*
3939
* @default true
4040
*/
41-
dev: boolean;
41+
dev?: boolean;
4242
/**
43-
* This will force SSR code in the produced files. This is experiemental
44-
* and mostly not working yet.
43+
* This will force SSR code in the produced files.
4544
*
4645
* @default false
4746
*/
48-
ssr: boolean;
47+
ssr?: boolean;
4948

5049
/**
5150
* This will inject HMR runtime in dev mode. Has no effect in prod. If
5251
* set to `false`, it won't inject the runtime in dev.
5352
*
5453
* @default true
5554
*/
56-
hot: boolean;
55+
hot?: boolean;
5756
/**
5857
* This registers additional extensions that should be processed by
5958
* vite-plugin-solid.
@@ -67,7 +66,7 @@ export interface Options {
6766
*
6867
* @default {}
6968
*/
70-
babel:
69+
babel?:
7170
| babel.TransformOptions
7271
| ((source: string, id: string, ssr: boolean) => babel.TransformOptions)
7372
| ((source: string, id: string, ssr: boolean) => Promise<babel.TransformOptions>);
@@ -77,14 +76,14 @@ export interface Options {
7776
*
7877
* @default {}
7978
*/
80-
solid: {
79+
solid?: {
8180
/**
8281
* Removed unnecessary closing tags from template strings. More info here:
8382
* https://github.com/solidjs/solid/blob/main/CHANGELOG.md#smaller-templates
8483
*
8584
* @default false
8685
*/
87-
omitNestedClosingTags: boolean;
86+
omitNestedClosingTags?: boolean;
8887

8988
/**
9089
* The name of the runtime module to import the methods from.

0 commit comments

Comments
 (0)