Fixed order of operators in build process

This commit is contained in:
squidfunk 2022-04-09 17:24:24 +02:00
parent 2c298e5f50
commit e1546745db

View File

@ -228,6 +228,7 @@ export function transformScript(
]
}))
.pipe(
catchError(() => EMPTY),
switchMap(({ outputFiles: [file] }) => {
const contents = file.text.split("\n")
const [, data] = contents[contents.length - 2].split(",")
@ -236,7 +237,6 @@ export function transformScript(
map: Buffer.from(data, "base64")
})
}),
catchError(() => EMPTY),
switchMap(({ js, map }) => {
const file = digest(options.to, js)
return concat(