ok no more debugging for now

This commit is contained in:
2025-02-15 21:39:32 -07:00
parent 7914eb444a
commit b30a241d09
5 changed files with 38 additions and 31 deletions

View File

@@ -4,8 +4,9 @@ export function strip(): Plugin {
const p: Plugin = {
name: "debug-strip",
enforce: "pre",
apply: "build",
transform(code: string, id: string) {
if (!id.endsWith(".ts")) {
if (!id.endsWith(".ts") || import.meta.env.DEV) {
return code;
}