dont generate test output if no css

pull/1298/head
Rich-Harris 7 years ago
parent 00877e8ebd
commit 9092b1c58a

@ -45,7 +45,7 @@ describe("sourcemaps", () => {
JSON.stringify(map, null, " ")
);
if (css) {
if (css.code) {
fs.writeFileSync(
`${outputFilename}.css`,
`${css}\n/*# sourceMappingURL=output.css.map */`

@ -1,2 +0,0 @@
null
/*# sourceMappingURL=output.css.map */

@ -1,2 +0,0 @@
null
/*# sourceMappingURL=output.css.map */

@ -1,2 +0,0 @@
null
/*# sourceMappingURL=output.css.map */

@ -1,2 +0,0 @@
null
/*# sourceMappingURL=output.css.map */

@ -1,2 +0,0 @@
null
/*# sourceMappingURL=output.css.map */

@ -1,2 +0,0 @@
null
/*# sourceMappingURL=output.css.map */
Loading…
Cancel
Save