Skip to content

Commit 8ac13f7

Browse files
authored
chore: print compiler warnings when using sandbox (#12793)
1 parent 536be64 commit 8ac13f7

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

playgrounds/sandbox/run.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,11 +63,18 @@ for (const generate of /** @type {const} */ (['client', 'server'])) {
6363
runes: argv.values.runes
6464
});
6565

66+
for (const warning of compiled.warnings) {
67+
console.warn(warning.code);
68+
console.warn(warning.frame);
69+
}
70+
6671
fs.writeFileSync(
6772
output_js,
6873
compiled.js.code + '\n//# sourceMappingURL=' + path.basename(output_map)
6974
);
75+
7076
fs.writeFileSync(output_map, compiled.js.map.toString());
77+
7178
if (compiled.css) {
7279
fs.writeFileSync(output_css, compiled.css.code);
7380
}

0 commit comments

Comments
 (0)