Drop the duplicate autoprefixer pass from the RTL build (#3292)

This commit is contained in:
Paweł Kuna authored and GitHub committed 2026-10-08 14:19:39 +02:00
1 parent 8dc1ffefbd
commit 5aad08b7c1
1 file changed
+2 -2
+2 -2
View File
@@ -82,13 +82,13 @@ async function compile(entry: string): Promise<{ outFile: string; result: Result
return { outFile, result }
}
// rtlcss over the prefixed output: outDir/x.css → outDir/x.rtl.css (+ .map)
// rtlcss over the prefixed, already autoprefixed output: outDir/x.css → outDir/x.rtl.css (+ .map)
async function rtl(entry: string, outFile: string, base: Result): Promise<void> {
const rtlFile = join(outDir, `${basename(entry, '.scss')}.rtl.css`)
// Same input the CLI read from disk: the prefixed css including its
// sourceMappingURL annotation, so postcss picks up the previous map.
// The previous map is not on disk yet (writes are buffered) — pass it in.
const result = await postcss([autoprefixer({ cascade: false }), rtlcss()]).process(base.css, {
const result = await postcss([rtlcss()]).process(base.css, {
from: outFile,
to: rtlFile,
map: { ...mapOptions, prev: base.map.toString() },