supabase / edge-runtime

A server based on Deno runtime, capable of running JavaScript, TypeScript, and WASM services.
MIT License
640 stars 55 forks source link

fix: attaching inline source map into module code when inspect is enabled #356

Closed nyannyacha closed 3 months ago

nyannyacha commented 3 months ago

What kind of change does this PR introduce?

Bug fix

Description

For non-entrypoint scripts, source maps is not loaded by default because it is stored separately in eszip.

This PR will make the source map automatically append to the end of the module code when it is loaded by the module loader if it exists in eszip. (However, due to the extra cost of copying a source buffer, it is only performed if the inspector is enabled)

github-actions[bot] commented 3 months ago

:tada: This PR is included in version 1.53.4 :tada:

The release is available on GitHub release

Your semantic-release bot :package::rocket: