Skip to content

Commit a6b0a0f

Browse files
authored
refactor(v8-bridge): modularize the bridge into a per-subsystem TypeScript package (#165)
* refactor(v8-bridge): remove the generated .source.js seam, bundle bridge-src directly * refactor(v8-bridge): split network/process/polyfills/child-process/module-loader into per-subsystem modules
1 parent db2c79b commit a6b0a0f

53 files changed

Lines changed: 17839 additions & 45608 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

crates/build-support/v8_bridge_build.rs

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,6 @@ fn require_pnpm(repo_root: &Path, debug: bool) {
235235
fn emit_rerun_inputs(repo_root: &Path, script_path: &Path, package_root: &Path) {
236236
let inputs = [
237237
repo_root.join("crates/build-support/v8_bridge_build.rs"),
238-
repo_root.join("crates/execution/assets/v8-bridge.source.js"),
239238
script_path.to_path_buf(),
240239
package_root.join("package.json"),
241240
repo_root.join("pnpm-lock.yaml"),
@@ -245,6 +244,15 @@ fn emit_rerun_inputs(repo_root: &Path, script_path: &Path, package_root: &Path)
245244
println!("cargo:rerun-if-changed={}", input.display());
246245
}
247246

247+
let bridge_src_dir = repo_root.join("packages/build-tools/bridge-src");
248+
emit_rerun_dir(&bridge_src_dir).unwrap_or_else(|error| {
249+
panic!(
250+
"failed to enumerate V8 bridge source inputs under {}: {}",
251+
bridge_src_dir.display(),
252+
error
253+
)
254+
});
255+
248256
let shim_dir = repo_root.join("crates/execution/assets/undici-shims");
249257
emit_rerun_dir(&shim_dir).unwrap_or_else(|error| {
250258
panic!(

crates/execution/CLAUDE.md

Lines changed: 32 additions & 32 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)