feat: support transparency

This commit is contained in:
TrèsAbhi committed 2025-10-11 21:22:48 -05:00
1 parent 06a3791ddd
commit 4ab03e56a2
7 files changed
+190 -184

No files matched your search

+1 -5
View File
@@ -1,7 +1,3 @@
import { assertSecret } from "@blitzkit/core";
const dev = assertSecret(import.meta.env.DEV);
export function literals(
string: string,
literals?: Record<string, string | number | undefined>
@@ -9,7 +5,7 @@ export function literals(
for (const key in literals) {
const mutated = string.replaceAll(`{${key}}`, `${literals[key]}`);
if (dev && mutated === string) {
if (import.meta.env.DEV && mutated === string) {
console.warn(`Could not find literal {${key}} in string "${string}"`);
}