mirror of
https://github.com/denoland/deno.git
synced 2025-09-27 20:59:10 +00:00
Currently the resolution for extension sources is different depending on whether `include_js_files_for_snapshotting` is enabled. If sources are embedded it uses `include_str!()` which is module-relative. If sources are read at runtime paths are joined to `CARGO_MANIFEST_DIR` and are package-relative. This makes them both package-relative. Fixes `cargo run -p deno_runtime --example extension_with_esm --features include_js_files_for_snapshotting`. |
||
|---|---|---|
| .. | ||
| bootstrap.js | ||
| main.js | ||
| main.rs | ||