This commit is contained in:
2026-08-14 16:03:47 +01:00
parent fd53e3f4fb
commit dfdc3b2840
2463 changed files with 186456 additions and 111315 deletions
+13
View File
@@ -378,6 +378,19 @@ class LazyResult {
if (opts.stringifier) str = opts.stringifier
if (str.stringify) str = str.stringify
let rootSource = this.result.root.source
if (
opts.map === undefined &&
!(rootSource && rootSource.input && rootSource.input.map)
) {
let result = ''
str(this.result.root, i => {
result += i
})
this.result.css = result
return this.result
}
let map = new MapGenerator(str, this.result.root, this.result.opts)
let data = map.generate()
this.result.css = data[0]