chore: print compiler warnings when using sandbox (#12793)

pull/12794/head
Rich Harris 1 month ago committed by GitHub
parent 536be645fa
commit 8ac13f76f1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -63,11 +63,18 @@ for (const generate of /** @type {const} */ (['client', 'server'])) {
runes: argv.values.runes
});
for (const warning of compiled.warnings) {
console.warn(warning.code);
console.warn(warning.frame);
}
fs.writeFileSync(
output_js,
compiled.js.code + '\n//# sourceMappingURL=' + path.basename(output_map)
);
fs.writeFileSync(output_map, compiled.js.map.toString());
if (compiled.css) {
fs.writeFileSync(output_css, compiled.css.code);
}

Loading…
Cancel
Save