We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7c9d43e commit ee73111Copy full SHA for ee73111
turbopack/crates/turbopack-ecmascript/benches/analyzer.rs
@@ -41,9 +41,12 @@ pub fn benchmark(c: &mut Criterion) {
41
for result in results {
42
let entry = result.unwrap();
43
if entry.file_type().unwrap().is_dir() {
44
- let name = entry.file_name().into_string().unwrap();
45
let input = entry.path().join("input.js");
46
-
+ if !input.exists() {
+ eprintln!("Missing file: {input:?} skipping");
47
+ continue;
48
+ }
49
+ let name = entry.file_name().into_string().unwrap();
50
let cm = Arc::new(SourceMap::new(FilePathMapping::empty()));
51
let fm = cm.load_file(&input).unwrap();
52
GLOBALS.set(&swc_core::common::Globals::new(), || {
0 commit comments