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