Skip to content

Commit cea8ac9

Browse files
committed
fix: format
1 parent 30299ab commit cea8ac9

2 files changed

Lines changed: 14 additions & 13 deletions

File tree

packages/compiler/src/shared.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff 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,

packages/compiler/src/types.ts

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -56,16 +56,16 @@ export interface ParseOptions {
5656
*/
5757
export 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
/**

0 commit comments

Comments
 (0)