mirror of
https://github.com/denoland/deno.git
synced 2024-10-30 09:08:00 -04:00
55362452a8
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 |