@cross-css/native-darwin-arm64 0.4.0 → 0.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +21 -0
- package/package.json +1 -1
- package/xcss.node +0 -0
package/README.md
CHANGED
|
@@ -104,3 +104,24 @@ module artifacts. It contains `css`, `sourceMap`, `sourceDependencies`, and mapp
|
|
|
104
104
|
`Compiler.compileUtilities(entries)` returns the deduplicated utility union for
|
|
105
105
|
several entry modules. Recompute the union after source updates or removals.
|
|
106
106
|
Bundled compilation includes utility CSS directly in the module artifact.
|
|
107
|
+
|
|
108
|
+
## Source formatting
|
|
109
|
+
|
|
110
|
+
`formatSource(source, options?)` formats XCSS without compiling CSS, resolving
|
|
111
|
+
imports, or reading files. It returns `{ text, diagnostics }`: `text` is absent
|
|
112
|
+
when syntax is invalid, and the original source must be left unchanged. Semantic
|
|
113
|
+
errors such as unresolved references do not prevent formatting. Diagnostic ranges
|
|
114
|
+
are zero-based UTF-16 positions in the original input.
|
|
115
|
+
|
|
116
|
+
Options are `tabWidth` (1–16, default 2), `useTabs` (default false),
|
|
117
|
+
`printWidth` (1–1000, default 80), and `endOfLine` (`lf` or `crlf`, default
|
|
118
|
+
`lf`). Formatting adds a final newline to nonempty output. `@raw` bodies and
|
|
119
|
+
nodes preceded by `/* prettier-ignore */` remain verbatim, even when their line
|
|
120
|
+
endings differ from the requested layout. Unknown at-rules remain opaque.
|
|
121
|
+
|
|
122
|
+
The Rust API is `xcss_format::format(source, &FormatOptions)`. The formatter
|
|
123
|
+
uses Malva's Raffia-based CSS printer and an XCSS document printer. CSS golden
|
|
124
|
+
fixtures are pinned to Prettier 3.6.2; exhaustive Prettier equivalence is not
|
|
125
|
+
guaranteed. XCSS headers and expressions use compatible layout conventions.
|
|
126
|
+
Opaque fragments deliberately retain their original spelling; comments are
|
|
127
|
+
preserved byte-for-byte. There is no CLI formatting command in this release.
|
package/package.json
CHANGED
package/xcss.node
CHANGED
|
Binary file
|