Skip to content

Commit eb46387

Browse files
authored
Merge pull request #210 from etodanik/add-missing-config
add new configuration from dom-expressions
2 parents 5b6d8ac + f58b288 commit eb46387

File tree

2 files changed

+22
-1
lines changed

2 files changed

+22
-1
lines changed

.changeset/small-poems-end.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+
add new configuration from dom-expressions

src/index.ts

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,13 +80,29 @@ export interface Options {
8080
*/
8181
solid?: {
8282
/**
83-
* Removed unnecessary closing tags from template strings. More info here:
83+
* Remove unnecessary closing tags from template strings. More info here:
8484
* https://github.com/solidjs/solid/blob/main/CHANGELOG.md#smaller-templates
8585
*
8686
* @default false
8787
*/
8888
omitNestedClosingTags?: boolean;
8989

90+
/**
91+
* Remove the last closing tag from template strings. Enabled by default even when `omitNestedClosingTags` is disabled.
92+
* Can be disabled for compatibility for some browser-like environments.
93+
*
94+
* @default true
95+
*/
96+
omitLastClosingTag?: boolean;
97+
98+
/**
99+
* Remove unnecessary quotes from template strings.
100+
* Can be disabled for compatibility for some browser-like environments.
101+
*
102+
* @default true
103+
*/
104+
omitQuotes?: boolean;
105+
90106
/**
91107
* The name of the runtime module to import the methods from.
92108
*

0 commit comments

Comments
 (0)