aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/tool
diff options
context:
space:
mode:
authorDeniz Akşimşek <deniz@denizaksimsek.com>2024-06-13 18:18:49 +0300
committerDeniz Akşimşek <deniz@denizaksimsek.com>2024-06-13 18:19:27 +0300
commitb59d95da1f2e46b57eaebe66e8c64c27c4cc850e (patch)
treeb11516ecd606ac02a3c9500f92d7e72d10c1e5ff /tool
parent78cbc5fb1047b8a24fd8bd2640d96649ea0bf285 (diff)
downloadmissing-b59d95da1f2e46b57eaebe66e8c64c27c4cc850e.tar.gz
missing-b59d95da1f2e46b57eaebe66e8c64c27c4cc850e.zip
Remove bloat by reducing browser support in compiler
Diffstat (limited to 'tool')
-rw-r--r--tool/css.ts6
1 files changed, 3 insertions, 3 deletions
diff --git a/tool/css.ts b/tool/css.ts
index a9abde7..c5afb8c 100644
--- a/tool/css.ts
+++ b/tool/css.ts
@@ -1,6 +1,6 @@
import {
browserslistToTargets,
- bundleAsync,
+ bundle,
transform,
} from "npm:lightningcss@1.21.7";
import browserslist from "npm:browserslist";
@@ -12,13 +12,13 @@ const input = Deno.args[0],
// Compile
-const compile = await bundleAsync({
+const compile = bundle({
filename: input,
drafts: { nesting: true },
errorRecovery: true,
minify: false,
targets: browserslistToTargets(
- browserslist(">= 0.25%"),
+ browserslist(">= 0.25% and not ie 11"),
),
});