comp + vec: snapshot before bug hunting

This commit is contained in:
nym21
2025-05-06 00:44:39 +02:00
parent 9ba3c2b7c5
commit aa30feb875
15 changed files with 585 additions and 899 deletions
+2 -2
View File
@@ -4,7 +4,7 @@ use std::{fs, path::Path};
use oxc::{
allocator::Allocator,
codegen::{CodeGenerator, CodegenOptions, LegalComment},
codegen::{Codegen, CodegenOptions, LegalComment},
minifier::{CompressOptions, MangleOptions, Minifier, MinifierOptions},
parser::Parser,
span::SourceType,
@@ -26,7 +26,7 @@ pub fn minify_js(path: &Path) -> String {
})
.build(&allocator, &mut program);
CodeGenerator::new()
Codegen::new()
.with_options(CodegenOptions {
minify: true,
single_quote: false,