Rust library to generate static websites
5
fork

Configure Feed

Select the types of activity you want to include in your feed.

fix: something weird but I guess I won't ask

+21 -3
+2
crates/maudit/src/build.rs
··· 26 26 use log::{debug, info, trace, warn}; 27 27 use pathdiff::diff_paths; 28 28 use rolldown::{Bundler, BundlerOptions, InputItem, ModuleType}; 29 + use rolldown_plugin_replace::ReplacePlugin; 29 30 use rustc_hash::{FxHashMap, FxHashSet}; 30 31 31 32 use crate::assets::Asset; ··· 495 496 .collect::<Vec<PathBuf>>(), 496 497 }), 497 498 Arc::new(PrefetchPlugin {}), 499 + Arc::new(ReplacePlugin::new(FxHashMap::default())?), 498 500 ], 499 501 )?; 500 502
+1 -1
e2e/tests/utils.ts
··· 4 4 // Find the actual prefetch bundle file (hash changes on each build) 5 5 const distDir = join(process.cwd(), "../crates/maudit/js/dist"); 6 6 const prefetchFile = readdirSync(distDir).find( 7 - (f) => f.startsWith("prefetch-") && f.endsWith(".js"), 7 + (f) => f.startsWith("prefetch") && f.endsWith(".js"), 8 8 ); 9 9 if (!prefetchFile) throw new Error("Could not find prefetch bundle"); 10 10
+18 -2
xtask/src/main.rs
··· 110 110 // Configure Rolldown bundler input 111 111 let input_items = vec![ 112 112 InputItem { 113 - name: Some("prefetch".to_string()), 113 + name: None, 114 114 import: js_src_dir.join("prefetch.ts").to_string_lossy().to_string(), 115 115 }, 116 116 InputItem { 117 - name: Some("hover".to_string()), 117 + name: None, 118 118 import: js_src_dir 119 119 .join("prefetch") 120 120 .join("hover.ts") 121 + .to_string_lossy() 122 + .to_string(), 123 + }, 124 + InputItem { 125 + name: None, 126 + import: js_src_dir 127 + .join("prefetch") 128 + .join("tap.ts") 129 + .to_string_lossy() 130 + .to_string(), 131 + }, 132 + InputItem { 133 + name: None, 134 + import: js_src_dir 135 + .join("prefetch") 136 + .join("viewport.ts") 121 137 .to_string_lossy() 122 138 .to_string(), 123 139 },