fn test_minifier() {
let js = r###"
const a = 123;
const b = "123";
const c = `the number is ${a} <-- note the spaces here`;
const d = ` ${a} ${b} `;
"###;
println!("{:?}", minifier::js::minify(js));
}
The above code outputs
"const a=123;const b=\"123\";const c=`the number is ${a}<--note the spaces here`;const d=` ${a}${b}`"
The correct output is
"const a=123;const b=\"123\";const c=`the number is ${a} <-- note the spaces here`;const d=` ${a} ${b} `"
The above code outputs
The correct output is