File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -30,9 +30,10 @@ export function mapOptions(
3030 preprocessedStyles = options . preprocessedStyles . styles ;
3131 }
3232 }
33-
34- const compact = ( options . compact === true ? "html" : options . compact === "jsx" ? "jsx" : undefined ) ?? "none" ;
35-
33+
34+ const compact =
35+ ( options . compact === true ? 'html' : options . compact === 'jsx' ? 'jsx' : undefined ) ?? 'none' ;
36+
3637 return {
3738 filename : options . filename ,
3839 normalizedFilename : options . normalizedFilename ,
Original file line number Diff line number Diff line change @@ -56,16 +56,16 @@ export interface ParseOptions {
5656 */
5757export interface TransformOptions
5858 extends Omit < CompileOptions , 'resolvePathProvided' | 'preprocessedStyles' | 'compact' > {
59- /**
60- * Controls whitespace collapsing in the HTML output.
61- *
62- * - `false`: no whitespace modification.
63- * - `true` (default): HTML-aware whitespace collapsing.
64- * - `"jsx"`: strips all whitespace-only text nodes and leading/trailing
65- * whitespace from text content.
66- *
67- * @default `true`
68- */
59+ /**
60+ * Controls whitespace collapsing in the HTML output.
61+ *
62+ * - `false`: no whitespace modification.
63+ * - `true` (default): HTML-aware whitespace collapsing.
64+ * - `"jsx"`: strips all whitespace-only text nodes and leading/trailing
65+ * whitespace from text content.
66+ *
67+ * @default `true`
68+ */
6969 compact ?: boolean | 'jsx' ;
7070 resolvePath ?: ( specifier : string ) => string ;
7171 /**
You can’t perform that action at this time.
0 commit comments